package com.sg.service.biz.app.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.base.app.req.*;
import com.sg.dto.biz.app.req.*;
import com.sg.dto.biz.app.res.*;
import com.sg.dto.integration.component.QueryConfItemMatchAnswerDetailComReqDto;
import com.sg.service.base.app.MOmsBasicInstanceUnstructuredRelationshipService;
import com.sg.service.base.app.MOmsEvaluationObjectTargetCycleService;
import com.sg.service.base.app.MOmsExecuteCycleStageService;
import com.sg.service.base.app.MOmsTspeCycleStageDataService;
import com.sg.service.biz.app.*;
import com.sg.common.exception.Assert;
import com.wicket.okrcomponent.integration.FwCompCommonClient;
import com.wicket.okrcomponent.integration.ConfSchemeService;
import com.wicket.okrcomponent.integration.InterfaceModeService;
import com.wicket.okrcomponent.integration.UnstructuredDataService;
import com.wicket.okrcomponent.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class UnstructuredDataServiceImpl
        implements com.wicket.okrapp.biz.service.UnstructuredDataService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    private MOmsBasicInstanceUnstructuredRelationshipService mOmsBasicInstanceUnstructuredRelationshipService;
    //@Resource
    //private undefinedService undefinedService;
    @Resource
    private NbUnstructuredData nbUnstructuredData;
    @Resource
    private UnstructuredDataService unstructuredDataService;
    //@Resource
    //private MCustomFields3Service mCustomFields3Service;
    @Resource
    private InterfaceModeService interfaceModeService;
    @Resource
    private FwCompCommonClient fwCompCommonClient;
    @Resource
    private ConfSchemeService confSchemeService;
    //@Resource
    //private MCustomFields5Service mCustomFields5Service;
    @Resource
    private MOmsEvaluationObjectTargetCycleService mOmsEvaluationObjectTargetCycleService;
    @Resource
    private IndexSystemService indexSystemService;
    @Resource
    private MOmsExecuteCycleStageService mOmsExecuteCycleStageService;
    @Resource
    private VirtualOrgService virtualOrgService;
    @Resource
    private SmallCircleCommonService smallCircleCommonService;
    @Resource
    private AchievementService achievementService;
    @Resource
    private TargetCycleService targetCycleService;
    @Resource
    private DashboardAchievementService dashboardAchievementService;
    @Resource
    private MOmsTspeCycleStageDataService mOmsTspeCycleStageDataService;
    @Resource
    private CycleStageDataService cycleStageDataService;

    /**
     * D3-3批量增文档附件关系(公共)[2700]
     * gen by moon at 6/16/2023, 3:05:00 AM
     */
    @Trace(operationName = "D3-3批量增文档附件关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchAddDmAttRelaComRespDto batchAddDmAttRelaCom(BatchAddDmAttRelaComReqDto reqDto) {


        if ((reqDto != null && reqDto.getBusAppDocRelaList() != null && reqDto.getBusAppDocRelaList().size() > 0)) {
            //if(D3-3批量增文档附件关系(公共).业务应用文档关系列表数据集条数 大于 0)  6750

//ModelCode: circulationCollections
            for (BusAppDocRelaDto circulationCollectionsRes : reqDto.getBusAppDocRelaList()) {

                if ((circulationCollectionsRes != null && circulationCollectionsRes.getUnstructuredDataId() == null)) {
                    //if(M3-新增附件【循环开始】.文档ID 值等于空 )  21485

//processBranchName:继续循环 ,processBranchId:21486
                    continue;
                }
                List<OmsBasicInstanceUnstructuredRelationship> listOmsBasicInstanceUnstructuredRelationship = new ArrayList<>();
                QueryBusAppDocRelaListReq queryBusAppDocRelaListReq = new QueryBusAppDocRelaListReq();
                if (reqDto != null) {
                    queryBusAppDocRelaListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:123593_1_13469
                    queryBusAppDocRelaListReq.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:123592_1_13469
                    queryBusAppDocRelaListReq.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:222301_1_13469
                    queryBusAppDocRelaListReq.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:735776_1_13469
                    queryBusAppDocRelaListReq.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:735775_1_13469
                    queryBusAppDocRelaListReq.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:735774_1_13469
                    queryBusAppDocRelaListReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1042753_1_13469
                }

                /*3-13-05查文档关系列表[2517]   */
                Assert.isNull(queryBusAppDocRelaListReq.getEntityId(), "D3-3批量增文档附件关系(公共)-3-13-05查文档关系列表-归属内容实例ID不能为空", false);
                Assert.isNull(queryBusAppDocRelaListReq.getBizAppFileTypeCode(), "D3-3批量增文档附件关系(公共)-3-13-05查文档关系列表-业务应用文档归属类型编码不能为空", false);
                Assert.isNull(queryBusAppDocRelaListReq.getBaseFileRelationshipType(), "D3-3批量增文档附件关系(公共)-3-13-05查文档关系列表-文档内容关系类型编码不能为空", false);
                listOmsBasicInstanceUnstructuredRelationship = mOmsBasicInstanceUnstructuredRelationshipService.queryBusAppDocRelaList(queryBusAppDocRelaListReq)/*vcase invoke 本地 method 方法调用;*/;


//ModelCode: maxOfMultipleNumAddOne
                ObtainMaxOfCollectionsRespDto maxOfMultipleNumAddOneRes = null;
                ObtainMaxOfCollectionsReqDto maxOfMultipleNumAddOneReq = new ObtainMaxOfCollectionsReqDto();
                if (listOmsBasicInstanceUnstructuredRelationship != null && !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship) && listOmsBasicInstanceUnstructuredRelationship != null && !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship)) {
                    maxOfMultipleNumAddOneReq.setBusAppDocRelaList(listOmsBasicInstanceUnstructuredRelationship.stream().map(item -> item.getOrderNumber())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:221880_1_13455
                }

                /*M3-获取数据集最大值[3286]  用于取数据集中最大的数值，在最大数值基础上加一，输出 */

                maxOfMultipleNumAddOneRes = nbUnstructuredData.obtainMaxOfCollections(maxOfMultipleNumAddOneReq);


                QueryDocumentDetailComRespDto queryDocumentDetailComRespDto = null;
                QueryDocumentDetailComReqDto queryDocumentDetailComReqDto = new QueryDocumentDetailComReqDto();
                if (circulationCollectionsRes != null) {
                    queryDocumentDetailComReqDto.setUnstructuredDataId(circulationCollectionsRes.getUnstructuredDataId());//SimpleFieldAssign//sourceId:222309_1_13470
                }

                /*D2-7查文档信息[3168]   */
                Assert.isNull(queryDocumentDetailComReqDto.getUnstructuredDataId(), "D3-3批量增文档附件关系(公共)-D2-7查文档信息-文档ID不能为空", false);
                queryDocumentDetailComRespDto = unstructuredDataService.queryDocumentDetailCom(queryDocumentDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


                String string = null;
                if (queryDocumentDetailComRespDto != null) {
                    OmsBasicInstanceUnstructuredRelationship omsBasicInstanceUnstructuredRelationship = new OmsBasicInstanceUnstructuredRelationship();
                    if (reqDto != null) {
                        omsBasicInstanceUnstructuredRelationship.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:123215_1_13456
                        omsBasicInstanceUnstructuredRelationship.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:123212_1_13456
                        omsBasicInstanceUnstructuredRelationship.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:123214_1_13456
                        omsBasicInstanceUnstructuredRelationship.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:123216_1_13456
                        omsBasicInstanceUnstructuredRelationship.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:123217_1_13456
                        omsBasicInstanceUnstructuredRelationship.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:123218_1_13456
                        omsBasicInstanceUnstructuredRelationship.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1042750_1_13456
                    }
                    if (circulationCollectionsRes != null) {
                        omsBasicInstanceUnstructuredRelationship.setUnstructuredDataId(circulationCollectionsRes.getUnstructuredDataId());//SimpleFieldAssign//sourceId:123211_1_13456
                        omsBasicInstanceUnstructuredRelationship.setIsNetworkReference(circulationCollectionsRes.getIsNetworkReference());//SimpleFieldAssign//sourceId:123213_1_13456
                        omsBasicInstanceUnstructuredRelationship.setIsResult(circulationCollectionsRes.getIsResult());//SimpleFieldAssign//sourceId:221879_1_13456
                    }
                    if (queryDocumentDetailComRespDto != null) {
                        omsBasicInstanceUnstructuredRelationship.setFileRelativePathAccess(queryDocumentDetailComRespDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:123222_1_13456
                    }
                    if (maxOfMultipleNumAddOneRes != null) {
                        omsBasicInstanceUnstructuredRelationship.setOrderNumber(maxOfMultipleNumAddOneRes.getOrderNumber());//SimpleFieldAssign//sourceId:123219_1_13456
                    }

                    /*3-13-05新增文档关系[2698]   */
                    Assert.isNull(omsBasicInstanceUnstructuredRelationship.getEntityId(), "D3-3批量增文档附件关系(公共)-3-13-05新增文档关系-归属内容实例ID不能为空", false);
                    Assert.isNull(omsBasicInstanceUnstructuredRelationship.getUnstructuredDataId(), "D3-3批量增文档附件关系(公共)-3-13-05新增文档关系-文档ID不能为空", false);
                    Assert.isNull(omsBasicInstanceUnstructuredRelationship.getIsNetworkReference(), "D3-3批量增文档附件关系(公共)-3-13-05新增文档关系-是否是网盘引用关系不能为空", false);
                    Assert.isNull(omsBasicInstanceUnstructuredRelationship.getIsResult(), "D3-3批量增文档附件关系(公共)-3-13-05新增文档关系-冗余是否结果文档不能为空", false);
                    Assert.isNull(omsBasicInstanceUnstructuredRelationship.getBaseFileRelationshipType(), "D3-3批量增文档附件关系(公共)-3-13-05新增文档关系-文档内容关系类型编码不能为空", false);
                    Assert.isNull(omsBasicInstanceUnstructuredRelationship.getBizAppFileTypeCode(), "D3-3批量增文档附件关系(公共)-3-13-05新增文档关系-业务应用文档归属类型编码不能为空", false);
                    Assert.isNull(omsBasicInstanceUnstructuredRelationship.getFileRelativePathAccess(), "D3-3批量增文档附件关系(公共)-3-13-05新增文档关系-文件相对路径地址不能为空", false);
                    Assert.isNull(omsBasicInstanceUnstructuredRelationship.getOrderNumber(), "D3-3批量增文档附件关系(公共)-3-13-05新增文档关系-排序不能为空", false);
                    string = mOmsBasicInstanceUnstructuredRelationshipService.addBusAppDocRela(omsBasicInstanceUnstructuredRelationship)/*vcase invoke 本地 method 方法调用;*/;


                }
//ModelCode: circulationEnd
            }

        } else {
            //else  6768

//processBranchName:正常结束 ,processBranchId:16662

        }
        BatchAddDmAttRelaComRespDto retData = new BatchAddDmAttRelaComRespDto();


        return retData;
    }

    /**
     * D3-13新增文档及文档关系(公共)[2699]
     * gen by moon at 6/16/2023, 3:04:54 AM
     */
    @Trace(operationName = "D3-13新增文档及文档关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddDocAndDocRelaComRespDto addDocAndDocRelaCom(AddDocAndDocRelaComReqDto reqDto) {


        //步骤0: D3-3批量增文档附件关系(公共) - batchAddDmAttRelaCom
        BatchAddDmAttRelaComRespDto batchAddDmAttRelaComRespDto = null;
        BatchAddDmAttRelaComReqDto batchAddDmAttRelaComReqDto = new BatchAddDmAttRelaComReqDto();
        if (reqDto != null) {
            batchAddDmAttRelaComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:222397_1
            batchAddDmAttRelaComReqDto.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:222400_1
            batchAddDmAttRelaComReqDto.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:222398_1
            batchAddDmAttRelaComReqDto.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:333540_1
            batchAddDmAttRelaComReqDto.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:333541_1
            batchAddDmAttRelaComReqDto.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:333542_1
            batchAddDmAttRelaComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1042754_1
        }
        if (reqDto != null && reqDto.getBusAppDocRelaList() != null && !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())) {
            batchAddDmAttRelaComReqDto.setBusAppDocRelaList(reqDto.getBusAppDocRelaList().stream().map(item -> BeanUtil.toBean(item, BusAppDocRelaDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:222399_1
        }

        /*D3-3批量增文档附件关系(公共)[2700]   */
        Assert.isNull(batchAddDmAttRelaComReqDto.getEntityId(), "D3-13新增文档及文档关系(公共)-D3-3批量增文档附件关系(公共)-归属内容实例ID不能为空", false);
        Assert.isNull(batchAddDmAttRelaComReqDto.getBaseFileRelationshipType(), "D3-13新增文档及文档关系(公共)-D3-3批量增文档附件关系(公共)-文档内容关系类型编码不能为空", false);
        Assert.isNull(batchAddDmAttRelaComReqDto.getBizAppFileTypeCode(), "D3-13新增文档及文档关系(公共)-D3-3批量增文档附件关系(公共)-业务应用文档归属类型编码不能为空", false);
        batchAddDmAttRelaComRespDto = batchAddDmAttRelaCom(batchAddDmAttRelaComReqDto)/*vcase invoke 同服务,同domain*/;


        AddDocAndDocRelaComRespDto retData = new AddDocAndDocRelaComRespDto();


        return retData;
    }

    /**
     * D3批量删文档附件关系(公共)[6048]
     * gen by moon at 9/26/2023, 1:44:37 PM
     */
    @Trace(operationName = "D3批量删文档附件关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchDeleteDmAttRelaComRespDto batchDeleteDmAttRelaCom(BatchDeleteDmAttRelaComReqDto reqDto) {


        //virtualUsage 3-13-05查文档关系列表  32485
        List<OmsBasicInstanceUnstructuredRelationship> listOmsBasicInstanceUnstructuredRelationship = new ArrayList<>();
        QueryBusAppDocRelaListReq queryBusAppDocRelaListReq = new QueryBusAppDocRelaListReq();
        if (reqDto != null) {
            queryBusAppDocRelaListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:735778_1_32485
            queryBusAppDocRelaListReq.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:735777_1_32485
            queryBusAppDocRelaListReq.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:735780_1_32485
            queryBusAppDocRelaListReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:786472_1_32485
            queryBusAppDocRelaListReq.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:735782_1_32485
            queryBusAppDocRelaListReq.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:736275_1_32485
            queryBusAppDocRelaListReq.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:736274_1_32485
        }

        /*3-13-05查文档关系列表[2517]   */
        Assert.isNull(queryBusAppDocRelaListReq.getEntityId(), "D3批量删文档附件关系(公共)-3-13-05查文档关系列表-归属内容实例ID不能为空", false);
        Assert.isNull(queryBusAppDocRelaListReq.getBizAppFileTypeCode(), "D3批量删文档附件关系(公共)-3-13-05查文档关系列表-业务应用文档归属类型编码不能为空", false);
        Assert.isNull(queryBusAppDocRelaListReq.getBaseFileRelationshipType(), "D3批量删文档附件关系(公共)-3-13-05查文档关系列表-文档内容关系类型编码不能为空", false);
        listOmsBasicInstanceUnstructuredRelationship = mOmsBasicInstanceUnstructuredRelationshipService.queryBusAppDocRelaList(queryBusAppDocRelaListReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((listOmsBasicInstanceUnstructuredRelationship != null && listOmsBasicInstanceUnstructuredRelationship != null && listOmsBasicInstanceUnstructuredRelationship.size() > 0)) {
            //if(3-13-05查文档关系列表.业务应用文档关系列表数据集条数 大于 0)  32486

            boolean bOOLEAN;
            if (listOmsBasicInstanceUnstructuredRelationship != null && !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship) && listOmsBasicInstanceUnstructuredRelationship.size() > 0) {
                List<String> listString = new ArrayList<>();
                if (listOmsBasicInstanceUnstructuredRelationship != null && !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship) && listOmsBasicInstanceUnstructuredRelationship != null && !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship)) {
                    listString = listOmsBasicInstanceUnstructuredRelationship.stream().map(item -> item.getUnstructuredDataRelationshipId())
                            .collect(Collectors.toList());/*list-to-strings*///sourceId:735786_1_32487
                }

                /*3-13-05批量删业务应用文档关系[2910]   */

                bOOLEAN = mOmsBasicInstanceUnstructuredRelationshipService.batchDeleteBusAppDocRela(listString)/*vcase invoke 本地 method 方法调用;*/;


            }
//ModelCode: circulationCollections
            for (OmsBasicInstanceUnstructuredRelationship circulationCollectionsRes : listOmsBasicInstanceUnstructuredRelationship) {

                ImplementDelBusAppDocRelaComRespDto implementDelBusAppDocRelaComRespDto = null;

                ImplementDelBusAppDocRelaComReqDto implementDelBusAppDocRelaComReqDto = new ImplementDelBusAppDocRelaComReqDto();
                if (circulationCollectionsRes != null) {
                    implementDelBusAppDocRelaComReqDto.setFileRelativePathAccess(circulationCollectionsRes.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1135967_1_48947
                }

                /*11111D3执行删除业务应用文档附件(公共)[7448]   */
                Assert.isNull(implementDelBusAppDocRelaComReqDto.getFileRelativePathAccess(), "D3批量删文档附件关系(公共)-11111D3执行删除业务应用文档附件(公共)-文件相对路径地址不能为空", false);
                implementDelBusAppDocRelaComRespDto = implementDelBusAppDocRelaCom(implementDelBusAppDocRelaComReqDto)/*vcase invoke 同服务,同domain*/;


//ModelCode: circulationEnd
            }

        }
        BatchDeleteDmAttRelaComRespDto retData = new BatchDeleteDmAttRelaComRespDto();


        return retData;
    }

    /**
     * D3执行文档关系处理(公共)[6049]
     * gen by moon at 11/9/2023, 10:27:21 PM
     */
    @Trace(operationName = "D3执行文档关系处理(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementDocRelaDisposeComRespDto implementDocRelaDisposeCom(ImplementDocRelaDisposeComReqDto reqDto) {


        //virtualUsage D3批量删文档附件关系(公共)  34555
        BatchDeleteDmAttRelaComRespDto batchDeleteDmAttRelaComRespDto = null;
        BatchDeleteDmAttRelaComReqDto batchDeleteDmAttRelaComReqDto = new BatchDeleteDmAttRelaComReqDto();
        if (reqDto != null) {
            batchDeleteDmAttRelaComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:786473_1_34555
            batchDeleteDmAttRelaComReqDto.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:736019_1_34555
            batchDeleteDmAttRelaComReqDto.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:736018_1_34555
            batchDeleteDmAttRelaComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:736017_1_34555
            batchDeleteDmAttRelaComReqDto.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:736020_1_34555
            batchDeleteDmAttRelaComReqDto.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:736280_1_34555
            batchDeleteDmAttRelaComReqDto.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:736281_1_34555
        }

        /*D3批量删文档附件关系(公共)[6048]   */
        Assert.isNull(batchDeleteDmAttRelaComReqDto.getDocUseType(), "D3执行文档关系处理(公共)-D3批量删文档附件关系(公共)-文档用途类型不能为空", false);
        Assert.isNull(batchDeleteDmAttRelaComReqDto.getBaseFileRelationshipType(), "D3执行文档关系处理(公共)-D3批量删文档附件关系(公共)-文档内容关系类型编码不能为空", false);
        Assert.isNull(batchDeleteDmAttRelaComReqDto.getBizAppFileTypeCode(), "D3执行文档关系处理(公共)-D3批量删文档附件关系(公共)-业务应用文档归属类型编码不能为空", false);
        Assert.isNull(batchDeleteDmAttRelaComReqDto.getEntityId(), "D3执行文档关系处理(公共)-D3批量删文档附件关系(公共)-归属内容实例ID不能为空", false);
        batchDeleteDmAttRelaComRespDto = batchDeleteDmAttRelaCom(batchDeleteDmAttRelaComReqDto)/*vcase invoke 同服务,同domain*/;


        if ((reqDto != null && reqDto.getBusAppDocRelaList() != null && reqDto.getBusAppDocRelaList().size() > 0)) {
            //if(D3执行文档关系处理(公共).业务应用文档关系列表数据集条数 大于 0)  34556

            BatchAddDocAndDocRelaComRespDto batchAddDocAndDocRelaComRespDto = null;
            BatchAddDocAndDocRelaComReqDto batchAddDocAndDocRelaComReqDto = new BatchAddDocAndDocRelaComReqDto();
            if (reqDto != null) {
                batchAddDocAndDocRelaComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:786466_1_34557
                batchAddDocAndDocRelaComReqDto.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:747644_1_34557
                batchAddDocAndDocRelaComReqDto.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:747643_1_34557
                batchAddDocAndDocRelaComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:747642_1_34557
                batchAddDocAndDocRelaComReqDto.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:747645_1_34557
                batchAddDocAndDocRelaComReqDto.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:747646_1_34557
                batchAddDocAndDocRelaComReqDto.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:747647_1_34557
                batchAddDocAndDocRelaComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:747648_1_34557
                batchAddDocAndDocRelaComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1280433_1_34557
                batchAddDocAndDocRelaComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1280434_1_34557
            }
            if (reqDto != null && reqDto.getBusAppDocRelaList() != null && !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())) {
                batchAddDocAndDocRelaComReqDto.setBusAppDocRelaList(reqDto.getBusAppDocRelaList().stream().map(item -> BeanUtil.toBean(item, BusAppDocRelaDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:747649_1_34557
            }

            /*D3批量增文档及文档关系(公共)[6060]   */
            Assert.isNull(batchAddDocAndDocRelaComReqDto.getDocUseType(), "D3执行文档关系处理(公共)-D3批量增文档及文档关系(公共)-文档用途类型不能为空", false);
            Assert.isNull(batchAddDocAndDocRelaComReqDto.getBaseFileRelationshipType(), "D3执行文档关系处理(公共)-D3批量增文档及文档关系(公共)-文档内容关系类型编码不能为空", false);
            Assert.isNull(batchAddDocAndDocRelaComReqDto.getBizAppFileTypeCode(), "D3执行文档关系处理(公共)-D3批量增文档及文档关系(公共)-业务应用文档归属类型编码不能为空", false);
            Assert.isNull(batchAddDocAndDocRelaComReqDto.getEntityId(), "D3执行文档关系处理(公共)-D3批量增文档及文档关系(公共)-归属内容实例ID不能为空", false);
            batchAddDocAndDocRelaComRespDto = batchAddDocAndDocRelaCom(batchAddDocAndDocRelaComReqDto)/*vcase invoke 同服务,同domain*/;


        }
        ImplementDocRelaDisposeComRespDto retData = new ImplementDocRelaDisposeComRespDto();


        return retData;
    }

    /**
     * 11111D3批量增文档及文档关系(公共)[6060]
     * gen by moon at 6/7/2024, 6:55:28 PM
     */
    @Trace(operationName = "11111D3批量增文档及文档关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchAddDocAndDocRelaComRespDto batchAddDocAndDocRelaCom(BatchAddDocAndDocRelaComReqDto reqDto) {


        //步骤0: M3执行获取出入参业务字段（特殊方法） - implementAccessParameterBizField
        //ModelCode: receptionService
        ImplementAccessParameterBizFieldRespDto receptionServiceRes = null;
        ImplementAccessParameterBizFieldReqDto receptionServiceReq = new ImplementAccessParameterBizFieldReqDto();
        if (reqDto != null) {
            receptionServiceReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:743714_1
            receptionServiceReq.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:743713_1
            receptionServiceReq.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:743712_1
            receptionServiceReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:786464_1
            receptionServiceReq.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:743715_1
            receptionServiceReq.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:743716_1
            receptionServiceReq.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:743717_1
            receptionServiceReq.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:743718_1
            receptionServiceReq.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1280426_1
            receptionServiceReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1280427_1
        }
        if (reqDto != null && reqDto.getBusAppDocRelaList() != null && !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())) {
            receptionServiceReq.setBusAppDocRelaList(reqDto.getBusAppDocRelaList().stream().map(item -> BeanUtil.toBean(item, BusAppDocRelaDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:743711_1
        }

        /*M3-接收入参字段[5797]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getEntityId(), "11111D3批量增文档及文档关系(公共)-M3-接收入参字段-归属内容实例ID不能为空", false);
        Assert.isNull(receptionServiceReq.getBizAppFileTypeCode(), "11111D3批量增文档及文档关系(公共)-M3-接收入参字段-业务应用文档归属类型编码不能为空", false);
        Assert.isNull(receptionServiceReq.getBaseFileRelationshipType(), "11111D3批量增文档及文档关系(公共)-M3-接收入参字段-文档内容关系类型编码不能为空", false);
        receptionServiceRes = nbUnstructuredData.implementAccessParameterBizField(receptionServiceReq);


//步骤1: D2执行文档数据集插入排序字段(公共) - implementDocDataSetInsertionOrderNumCom
        ImplementDocDataSetInsertionOrderNumComRespDto implementDocDataSetInsertionOrderNumComRespDto = null;
        ImplementDocDataSetInsertionOrderNumComReqDto implementDocDataSetInsertionOrderNumComReqDto = new ImplementDocDataSetInsertionOrderNumComReqDto();
        if (reqDto != null && reqDto.getBusAppDocRelaList() != null && !CollectionUtil.isEmpty(reqDto.getBusAppDocRelaList())) {
            implementDocDataSetInsertionOrderNumComReqDto.setDocumentList(reqDto.getBusAppDocRelaList().stream().map(item -> BeanUtil.toBean(item, com.wicket.okrcomponent.integration.dto.DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:743734_1
        }

        /*D2-将文档列表插入自动排序字段[6063]   */

        implementDocDataSetInsertionOrderNumComRespDto = interfaceModeService.implementDocDataSetInsertionOrderNumCom(implementDocDataSetInsertionOrderNumComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤2: 3-13-05批量增文档附件关系 - batchAddDmAttRela
        boolean bOOLEAN;
        if (implementDocDataSetInsertionOrderNumComRespDto != null) {
            List<OmsBasicInstanceUnstructuredRelationship> listOmsBasicInstanceUnstructuredRelationship = new ArrayList<>();
            if (implementDocDataSetInsertionOrderNumComRespDto != null && implementDocDataSetInsertionOrderNumComRespDto.getDocumentList() != null && !CollectionUtil.isEmpty(implementDocDataSetInsertionOrderNumComRespDto.getDocumentList())) {
                listOmsBasicInstanceUnstructuredRelationship = //objList-to-objLists
                        implementDocDataSetInsertionOrderNumComRespDto.getDocumentList().stream().map(item -> {
                            OmsBasicInstanceUnstructuredRelationship elm = new OmsBasicInstanceUnstructuredRelationship();
                            if (reqDto != null) {
                                elm.setEntityId(reqDto.getEntityId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:167869_2
                                elm.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:167868_2
                                elm.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:167866_2
                                elm.setDocUseType(reqDto.getDocUseType());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:172690_2
                                elm.setOneStageId(reqDto.getOneStageId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:167870_2
                                elm.setTwoStageId(reqDto.getTwoStageId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:167871_2
                                elm.setLastStageId(reqDto.getLastStageId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:167872_2
                                elm.setIsResult(reqDto.getIsResult());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:167873_2
                                elm.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:263402_2
                                elm.setThemeContentId(reqDto.getThemeContentId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:220953_2
                            }
                            if (item != null) {
                                elm.setUnstructuredDataId(item.getUnstructuredDataId());//SimpleFieldAssign//sourceId:167863_2
                                elm.setFileRelativePathAccess(item.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:167864_2
                                elm.setSourceRelationshipId(item.getSourceRelationshipId());//SimpleFieldAssign//sourceId:167865_2
                                elm.setIsNetworkReference(item.getIsNetworkReference() != null ? String.valueOf(item.getIsNetworkReference()) : "");//SimpleFieldAssign//sourceId:167867_2
                                elm.setOrderNumber(item.getOrderNumber());//SimpleFieldAssign//sourceId:167874_2
                            }
                            return elm;
                        }).collect(Collectors.toList());//objList-to-objLists//sourceId:743710_1
            }

            /*3-13-05批量增文档附件关系[6061]   */

            bOOLEAN = mOmsBasicInstanceUnstructuredRelationshipService.batchAddDmAttRela(listOmsBasicInstanceUnstructuredRelationship)/*vcase invoke 本地 method 方法调用;*/;


        }

        BatchAddDocAndDocRelaComRespDto retData = new BatchAddDocAndDocRelaComRespDto();


        return retData;
    }

    /**
     * 11111D3执行删除业务应用文档附件(公共)[7448]
     * gen by moon at 6/2/2024, 10:43:33 PM
     */
    @Trace(operationName = "11111D3执行删除业务应用文档附件(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementDelBusAppDocRelaComRespDto implementDelBusAppDocRelaCom(ImplementDelBusAppDocRelaComReqDto reqDto) {


        //virtualUsage 3-13-05查业务应用文档关系列表  48942
        List<OmsBasicInstanceUnstructuredRelationship> listOmsBasicInstanceUnstructuredRelationship = new ArrayList<>();
        QueryBusAppDocRelaListReq queryBusAppDocRelaListReq = new QueryBusAppDocRelaListReq();
        if (reqDto != null) {
            queryBusAppDocRelaListReq.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1135946_1_48942
        }

        /*3-13-05查业务应用文档关系列表[2517]   */
        Assert.isNull(queryBusAppDocRelaListReq.getFileRelativePathAccess(), "11111D3执行删除业务应用文档附件(公共)-3-13-05查业务应用文档关系列表-文件相对路径地址不能为空", false);
        listOmsBasicInstanceUnstructuredRelationship = mOmsBasicInstanceUnstructuredRelationshipService.queryBusAppDocRelaList(queryBusAppDocRelaListReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((listOmsBasicInstanceUnstructuredRelationship != null && listOmsBasicInstanceUnstructuredRelationship != null && listOmsBasicInstanceUnstructuredRelationship.size() == 0)) {
            //if(3-13-05查业务应用文档关系列表.业务应用文档关系列表数据集条数 等于 0)  48943

            QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
            com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto = new QueryConfItemMatchAnswerDetailComReqDto();
            queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("FILE_STORAGE_ROOT_PATH");//CUSTOM_CONVENTION//sourceId:1139445_1_48994
            queryConfItemMatchAnswerDetailComReqDto.setConfSchemeCode("COM_CONF_SCHEME");//CUSTOM_CONVENTION//sourceId:1139446_1_48994
            queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("TRUE");//sourceId:1139447_1_48994

            /*D2-3查平台文件存储根路径答案[2486]   */
            Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(), "11111D3执行删除业务应用文档附件(公共)-D2-3查平台文件存储根路径答案-配置项标识不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfSchemeCode(), "11111D3执行删除业务应用文档附件(公共)-D2-3查平台文件存储根路径答案-配置方案标识不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(), "11111D3执行删除业务应用文档附件(公共)-D2-3查平台文件存储根路径答案-是否标准答案不能为空", false);
            queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            DeleteFileComRespDto deleteFileComRespDto = null;
            if (queryConfItemMatchAnswerDetailComRespDto != null) {
                DeleteFileComReqDto deleteFileComReqDto = new DeleteFileComReqDto();
                if (queryConfItemMatchAnswerDetailComRespDto != null) {
                    deleteFileComReqDto.setFileStorageRootPath(queryConfItemMatchAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:1139429_1_48944
                }
                if (reqDto != null) {
                    deleteFileComReqDto.setMediaContentAddress(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1135972_1_48944
                }

                /*D2删除物理文件(公共)[2913]   */
                Assert.isNull(deleteFileComReqDto.getFileStorageRootPath(), "11111D3执行删除业务应用文档附件(公共)-D2删除物理文件(公共)-文件存储根路径不能为空", false);
                Assert.isNull(deleteFileComReqDto.getMediaContentAddress(), "11111D3执行删除业务应用文档附件(公共)-D2删除物理文件(公共)-媒体内容地址不能为空", false);
                deleteFileComRespDto = fwCompCommonClient.deleteFileCom(deleteFileComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            }
        }
        ImplementDelBusAppDocRelaComRespDto retData = new ImplementDelBusAppDocRelaComRespDto();


        return retData;
    }

    /**
     * D3执行删资料文档附件[7452]
     * gen by moon at 9/27/2023, 11:01:52 PM
     */
    @Trace(operationName = "D3执行删资料文档附件")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementDelBusAppDocRelaRespDto implementDelBusAppDocRela(ImplementDelBusAppDocRelaReqDto reqDto) {


        if ((reqDto != null && reqDto.getUnstructuredDataId() != null)) {
            //if(D3执行删资料文档附件.文档ID 值不等于空 )  48958

            DeleteDocumentComRespDto deleteDocumentComRespDto = null;
            DeleteDocumentComReqDto deleteDocumentComReqDto = new DeleteDocumentComReqDto();
            if (reqDto != null) {
                deleteDocumentComReqDto.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1136320_1_48971
            }

            /*D2-删除文档(公共)[7453]   */
            Assert.isNull(deleteDocumentComReqDto.getUnstructuredDataId(), "D3执行删资料文档附件-D2-删除文档(公共)-文档ID不能为空", false);
            deleteDocumentComRespDto = unstructuredDataService.deleteDocumentCom(deleteDocumentComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            OmsBasicInstanceUnstructuredRelationship omsBasicInstanceUnstructuredRelationship = null;
            QueryBusAppDocRelaDetailReq queryBusAppDocRelaDetailReq = new QueryBusAppDocRelaDetailReq();
            queryBusAppDocRelaDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1136235_1_48959
            if (reqDto != null) {
                queryBusAppDocRelaDetailReq.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1136238_1_48959
                queryBusAppDocRelaDetailReq.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1136234_1_48959
            }

            /*3-13-05查询业务应用文档关系详情[2844]   */
            Assert.isNull(queryBusAppDocRelaDetailReq.getUnstructuredDataId(), "D3执行删资料文档附件-3-13-05查询业务应用文档关系详情-文档ID不能为空", false);
            Assert.isNull(queryBusAppDocRelaDetailReq.getFileRelativePathAccess(), "D3执行删资料文档附件-3-13-05查询业务应用文档关系详情-文件相对路径地址不能为空", false);
            Assert.isNull(queryBusAppDocRelaDetailReq.getSpaceId(), "D3执行删资料文档附件-3-13-05查询业务应用文档关系详情-创建于空间ID不能为空", false);
            omsBasicInstanceUnstructuredRelationship = mOmsBasicInstanceUnstructuredRelationshipService.queryBusAppDocRelaDetail(queryBusAppDocRelaDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            boolean bOOLEAN;
            if (omsBasicInstanceUnstructuredRelationship != null) {
                String string = new String();
                if (omsBasicInstanceUnstructuredRelationship != null) {
                    string = omsBasicInstanceUnstructuredRelationship.getUnstructuredDataRelationshipId();
                    ;//SimpleFieldAssign//sourceId:1136232_1_48960
                }

                /*3-13-05删除业务应用文档关系[3239]   */
                Assert.isNull(string, "D3执行删资料文档附件-3-13-05删除业务应用文档关系-文档关系ID不能为空", false);
                bOOLEAN = mOmsBasicInstanceUnstructuredRelationshipService.deleteBusAppDocRela(string)/*vcase invoke 本地 method 方法调用;*/;


            }
            ImplementDelBusAppDocRelaComRespDto implementDelBusAppDocRelaComRespDto = null;
            ImplementDelBusAppDocRelaComReqDto implementDelBusAppDocRelaComReqDto = new ImplementDelBusAppDocRelaComReqDto();
            if (reqDto != null) {
                implementDelBusAppDocRelaComReqDto.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1136181_1_48961
            }

            /*D3执行删除业务应用文档附件(公共)[7448]   */
            Assert.isNull(implementDelBusAppDocRelaComReqDto.getFileRelativePathAccess(), "D3执行删资料文档附件-D3执行删除业务应用文档附件(公共)-文件相对路径地址不能为空", false);
            implementDelBusAppDocRelaComRespDto = implementDelBusAppDocRelaCom(implementDelBusAppDocRelaComReqDto)/*vcase invoke 同服务,同domain*/;


        } else if ((reqDto != null && reqDto.getUnstructuredDataId() == null)) {
            //elseif(D3执行删资料文档附件.文档ID 值等于空 )  48962

            ImplementDelBusAppDocRelaComRespDto implementDelBusAppDocRelaComRespDto_1 = null;
            ImplementDelBusAppDocRelaComReqDto implementDelBusAppDocRelaComReqDto_1 = new ImplementDelBusAppDocRelaComReqDto();
            if (reqDto != null) {
                implementDelBusAppDocRelaComReqDto_1.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1136181_1_48963
            }

            /*D3执行删除业务应用文档附件(公共)[7448]   */
            Assert.isNull(implementDelBusAppDocRelaComReqDto_1.getFileRelativePathAccess(), "D3执行删资料文档附件-D3执行删除业务应用文档附件(公共)-文件相对路径地址不能为空", false);
            implementDelBusAppDocRelaComRespDto_1 = implementDelBusAppDocRelaCom(implementDelBusAppDocRelaComReqDto_1)/*vcase invoke 同服务,同domain*/;


        }
        ImplementDelBusAppDocRelaRespDto retData = new ImplementDelBusAppDocRelaRespDto();


        return retData;
    }

    /**
     * 11111D3-13新增文档附件关系(公共)[3121]
     * gen by moon at 6/2/2024, 12:47:11 AM
     */
    @Trace(operationName = "11111D3-13新增文档附件关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddDmAttRelaComRespDto addDmAttRelaCom(AddDmAttRelaComReqDto reqDto) {


        String string_1 = null;
//virtualUsage 3-13-05查业务应用文档关系列表  6947
        List<OmsBasicInstanceUnstructuredRelationship> listOmsBasicInstanceUnstructuredRelationship = new ArrayList<>();
        QueryBusAppDocRelaListReq queryBusAppDocRelaListReq = new QueryBusAppDocRelaListReq();
        if (reqDto != null) {
            queryBusAppDocRelaListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:126358_1_6947
            queryBusAppDocRelaListReq.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:126357_1_6947
        }

        /*3-13-05查业务应用文档关系列表[2517]   */
        Assert.isNull(queryBusAppDocRelaListReq.getEntityId(), "11111D3-13新增文档附件关系(公共)-3-13-05查业务应用文档关系列表-归属内容实例ID不能为空", false);
        Assert.isNull(queryBusAppDocRelaListReq.getBizAppFileTypeCode(), "11111D3-13新增文档附件关系(公共)-3-13-05查业务应用文档关系列表-业务应用文档归属类型编码不能为空", false);
        listOmsBasicInstanceUnstructuredRelationship = mOmsBasicInstanceUnstructuredRelationshipService.queryBusAppDocRelaList(queryBusAppDocRelaListReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((listOmsBasicInstanceUnstructuredRelationship != null && listOmsBasicInstanceUnstructuredRelationship != null && listOmsBasicInstanceUnstructuredRelationship.size() > 0)) {
            //if(3-13-05查业务应用文档关系列表.业务应用文档关系列表数据集条数 大于 0)  6948

//ModelCode: maxOfMultipleNumAddOne
            ObtainMaxOfCollectionsRespDto maxOfMultipleNumAddOneRes = null;
            if (listOmsBasicInstanceUnstructuredRelationship != null && !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship) && listOmsBasicInstanceUnstructuredRelationship.size() > 0) {
                ObtainMaxOfCollectionsReqDto maxOfMultipleNumAddOneReq = new ObtainMaxOfCollectionsReqDto();
                if (listOmsBasicInstanceUnstructuredRelationship != null && !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship) && listOmsBasicInstanceUnstructuredRelationship != null && !CollectionUtil.isEmpty(listOmsBasicInstanceUnstructuredRelationship)) {
                    maxOfMultipleNumAddOneReq.setBusAppDocRelaList(listOmsBasicInstanceUnstructuredRelationship.stream().map(item -> item.getOrderNumber())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:126370_1_6952
                }

                /*M3-获取取数据集最大值（特殊方法）[3286]  用于取数据集中最大的数值，在最大数值基础上加一，输出 */

                maxOfMultipleNumAddOneRes = nbUnstructuredData.obtainMaxOfCollections(maxOfMultipleNumAddOneReq);


            }
            String string = null;
            OmsBasicInstanceUnstructuredRelationship omsBasicInstanceUnstructuredRelationship = new OmsBasicInstanceUnstructuredRelationship();
            if (reqDto != null) {
                omsBasicInstanceUnstructuredRelationship.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:108550_1_6949
                omsBasicInstanceUnstructuredRelationship.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:108549_1_6949
                omsBasicInstanceUnstructuredRelationship.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:108547_1_6949
                omsBasicInstanceUnstructuredRelationship.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1313432_1_6949
                omsBasicInstanceUnstructuredRelationship.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:108546_1_6949
                omsBasicInstanceUnstructuredRelationship.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:108557_1_6949
                omsBasicInstanceUnstructuredRelationship.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:108548_1_6949
                omsBasicInstanceUnstructuredRelationship.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:108551_1_6949
                omsBasicInstanceUnstructuredRelationship.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:108552_1_6949
                omsBasicInstanceUnstructuredRelationship.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:108553_1_6949
                omsBasicInstanceUnstructuredRelationship.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:221860_1_6949
                omsBasicInstanceUnstructuredRelationship.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1313142_1_6949
                omsBasicInstanceUnstructuredRelationship.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1042746_1_6949
            }
            if (maxOfMultipleNumAddOneRes != null) {
                omsBasicInstanceUnstructuredRelationship.setOrderNumber(maxOfMultipleNumAddOneRes.getOrderNumber());//SimpleFieldAssign//sourceId:108554_1_6949
            }

            /*3-13-05新增业务应用文档关系[2698]   */
            Assert.isNull(omsBasicInstanceUnstructuredRelationship.getEntityId(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系-归属内容实例ID不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship.getBizAppFileTypeCode(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系-业务应用文档归属类型编码不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship.getBaseFileRelationshipType(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系-文档内容关系类型编码不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship.getUnstructuredDataId(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系-文档ID不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship.getFileRelativePathAccess(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系-文件相对路径地址不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship.getIsNetworkReference(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系-是否是网盘引用关系不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship.getOrderNumber(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系-排序不能为空", false);
            string = mOmsBasicInstanceUnstructuredRelationshipService.addBusAppDocRela(omsBasicInstanceUnstructuredRelationship)/*vcase invoke 本地 method 方法调用;*/;


            string_1 = string;
//processBranchName:正常结束 ,processBranchId:6954

        } else {
            //else  6950

            String string_2 = null;
            OmsBasicInstanceUnstructuredRelationship omsBasicInstanceUnstructuredRelationship_1 = new OmsBasicInstanceUnstructuredRelationship();
            omsBasicInstanceUnstructuredRelationship_1.setOrderNumber(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:126382_1_6953
            if (reqDto != null) {
                omsBasicInstanceUnstructuredRelationship_1.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:126378_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:126374_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:126385_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:126375_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:126377_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1313437_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:126376_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:126379_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:126380_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:126381_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1042749_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1313144_1_6953
                omsBasicInstanceUnstructuredRelationship_1.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1042747_1_6953
            }

            /*3-13-05新增业务应用文档关系（初始）[2698]   */
            Assert.isNull(omsBasicInstanceUnstructuredRelationship_1.getEntityId(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系（初始）-归属内容实例ID不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship_1.getUnstructuredDataId(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系（初始）-文档ID不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship_1.getFileRelativePathAccess(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系（初始）-文件相对路径地址不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship_1.getBaseFileRelationshipType(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系（初始）-文档内容关系类型编码不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship_1.getBizAppFileTypeCode(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系（初始）-业务应用文档归属类型编码不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship_1.getIsNetworkReference(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系（初始）-是否是网盘引用关系不能为空", false);
            Assert.isNull(omsBasicInstanceUnstructuredRelationship_1.getOrderNumber(), "11111D3-13新增文档附件关系(公共)-3-13-05新增业务应用文档关系（初始）-排序不能为空", false);
            string_2 = mOmsBasicInstanceUnstructuredRelationshipService.addBusAppDocRela(omsBasicInstanceUnstructuredRelationship_1)/*vcase invoke 本地 method 方法调用;*/;


//processBranchName:正常结束 ,processBranchId:6955

        }
        AddDmAttRelaComRespDto retData = new AddDmAttRelaComRespDto();
        if (string_1 != null) {
            retData.setUnstructuredDataRelationshipId(string_1);//SimpleFieldAssign//sourceId:125489_1
        }


        return retData;
    }

    /**
     * 111111D3增单条业务应用文档关系(公共)[7950]
     * gen by moon at 11/13/2023, 4:59:59 PM
     */
    @Trace(operationName = "11111D3增单条业务应用文档关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddSingleBusAppDocRelaComRespDto addSingleBusAppDocRelaCom(AddSingleBusAppDocRelaComReqDto reqDto) {


        QueryDocumentDetailComRespDto queryDocumentDetailComRespDto_1 = null;
        AddDmAttRelaComRespDto addDmAttRelaComRespDto_1 = null;
//步骤0: D2-7查询文档详情(公共) - queryDocumentDetailCom
        QueryDocumentDetailComRespDto queryDocumentDetailComRespDto = null;
        QueryDocumentDetailComReqDto queryDocumentDetailComReqDto = new QueryDocumentDetailComReqDto();
        if (reqDto != null) {
            queryDocumentDetailComReqDto.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1313126_1
        }

        /*D2-7查询文档详情(公共)[3168]   */

        queryDocumentDetailComRespDto = unstructuredDataService.queryDocumentDetailCom(queryDocumentDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        queryDocumentDetailComRespDto_1 = queryDocumentDetailComRespDto;

//步骤1: D3-13新增文档附件关系(公共) - addDmAttRelaCom
        AddDmAttRelaComRespDto addDmAttRelaComRespDto = null;
        if (queryDocumentDetailComRespDto != null) {
            AddDmAttRelaComReqDto addDmAttRelaComReqDto = new AddDmAttRelaComReqDto();
            if (reqDto != null) {
                addDmAttRelaComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1313162_1
                addDmAttRelaComReqDto.setBizAppFileTypeCode(reqDto.getBizAppFileTypeCode());//SimpleFieldAssign//sourceId:1313169_1
                addDmAttRelaComReqDto.setBaseFileRelationshipType(reqDto.getBaseFileRelationshipType());//SimpleFieldAssign//sourceId:1313159_1
                addDmAttRelaComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1313438_1
                addDmAttRelaComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1313160_1
                addDmAttRelaComReqDto.setOneStageId(reqDto.getOneStageId());//SimpleFieldAssign//sourceId:1313163_1
                addDmAttRelaComReqDto.setTwoStageId(reqDto.getTwoStageId());//SimpleFieldAssign//sourceId:1313164_1
                addDmAttRelaComReqDto.setLastStageId(reqDto.getLastStageId());//SimpleFieldAssign//sourceId:1313165_1
                addDmAttRelaComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1313170_1
            }
            if (queryDocumentDetailComRespDto != null) {
                addDmAttRelaComReqDto.setUnstructuredDataId(queryDocumentDetailComRespDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1313166_1
                addDmAttRelaComReqDto.setFileRelativePathAccess(queryDocumentDetailComRespDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1313167_1
                addDmAttRelaComReqDto.setThemeContentTypeCode(queryDocumentDetailComRespDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1313189_1
                addDmAttRelaComReqDto.setThemeContentId(queryDocumentDetailComRespDto.getThemeContentId());//SimpleFieldAssign//sourceId:1313190_1
            }

            /*D3-13新增文档附件关系(公共)[3121]   */
            Assert.isNull(addDmAttRelaComReqDto.getEntityId(), "D3增单条业务应用文档关系(公共)-D3-13新增文档附件关系(公共)-归属内容实例ID不能为空", false);
            Assert.isNull(addDmAttRelaComReqDto.getBizAppFileTypeCode(), "D3增单条业务应用文档关系(公共)-D3-13新增文档附件关系(公共)-业务应用文档归属类型编码不能为空", false);
            Assert.isNull(addDmAttRelaComReqDto.getBaseFileRelationshipType(), "D3增单条业务应用文档关系(公共)-D3-13新增文档附件关系(公共)-文档内容关系类型编码不能为空", false);
            Assert.isNull(addDmAttRelaComReqDto.getUnstructuredDataId(), "D3增单条业务应用文档关系(公共)-D3-13新增文档附件关系(公共)-文档ID不能为空", false);
            Assert.isNull(addDmAttRelaComReqDto.getFileRelativePathAccess(), "D3增单条业务应用文档关系(公共)-D3-13新增文档附件关系(公共)-文件相对路径地址不能为空", false);
            Assert.isNull(addDmAttRelaComReqDto.getIsNetworkReference(), "D3增单条业务应用文档关系(公共)-D3-13新增文档附件关系(公共)-是否是网盘引用关系不能为空", false);
            addDmAttRelaComRespDto = addDmAttRelaCom(addDmAttRelaComReqDto)/*vcase invoke 同服务,同domain*/;


            addDmAttRelaComRespDto_1 = addDmAttRelaComRespDto;
        }

        AddSingleBusAppDocRelaComRespDto retData = new AddSingleBusAppDocRelaComRespDto();
        if (addDmAttRelaComRespDto_1 != null) {
            retData.setUnstructuredDataRelationshipId(addDmAttRelaComRespDto_1.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:1313200_1
        }
        if (queryDocumentDetailComRespDto_1 != null) {
            retData.setFileRelativePathAccess(queryDocumentDetailComRespDto_1.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1313398_1
        }


        return retData;
    }

    /**
     * D3删除成果文档关系业务处理(公共)[9269]
     * gen by moon at 9/4/2024, 8:31:58 PM
     */
    @Trace(operationName = "D3删除成果文档关系业务处理(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeleteAchUnstrRelBizProComRespDto deleteAchUnstrRelBizProCom(DeleteAchUnstrRelBizProComReqDto reqDto) {


        //virtualUsage D2查询文档关系列表(公共)  66074
        QueryUnstructuredRelationshipListComRespDto queryUnstructuredRelationshipListComRespDto = null;
        QueryUnstructuredRelationshipListComReqDto queryUnstructuredRelationshipListComReqDto = new QueryUnstructuredRelationshipListComReqDto();
        if (reqDto != null) {
            queryUnstructuredRelationshipListComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1696177_1_66074
            queryUnstructuredRelationshipListComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1696181_1_66074
            queryUnstructuredRelationshipListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1696184_1_66074
        }

        /*D2查询文档关系列表(公共)[9270]   */
        Assert.isNull(queryUnstructuredRelationshipListComReqDto.getDocUseSceneCode(), "D3删除成果文档关系业务处理(公共)-D2查询文档关系列表(公共)-文档应用业务场景不能为空", false);
        Assert.isNull(queryUnstructuredRelationshipListComReqDto.getOwnEntityId(), "D3删除成果文档关系业务处理(公共)-D2查询文档关系列表(公共)-归属内容表主键ID不能为空", false);
        Assert.isNull(queryUnstructuredRelationshipListComReqDto.getSpaceId(), "D3删除成果文档关系业务处理(公共)-D2查询文档关系列表(公共)-创建于空间ID不能为空", false);
        queryUnstructuredRelationshipListComRespDto = unstructuredDataService.queryUnstructuredRelationshipListCom(queryUnstructuredRelationshipListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        if ((queryUnstructuredRelationshipListComRespDto != null && queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList() != null && queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList().size() > 0)) {
            //if(D2查询文档关系列表(公共).文档关系列表数据集条数 大于 0)  66075

            DeleteUnstructuredRelationshipComRespDto deleteUnstructuredRelationshipComRespDto = null;
            if (queryUnstructuredRelationshipListComRespDto != null) {
                DeleteUnstructuredRelationshipComReqDto deleteUnstructuredRelationshipComReqDto = new DeleteUnstructuredRelationshipComReqDto();
                deleteUnstructuredRelationshipComReqDto.setIsCleanPersonalInvalidDocument("TRUE");//sourceId:1996183_1_66076
                if (queryUnstructuredRelationshipListComRespDto != null && queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList() != null && !CollectionUtil.isEmpty(queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList())) {
                    deleteUnstructuredRelationshipComReqDto.setDocumentList(queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList().stream().map(item -> item.getUnstructuredDataId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1696185_1_66076
                }
                if (reqDto != null) {
                    deleteUnstructuredRelationshipComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1696186_1_66076
                    deleteUnstructuredRelationshipComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1696187_1_66076
                }

                /*D2删除文档关系(公共)[8786]   */
                Assert.isNull(deleteUnstructuredRelationshipComReqDto.getIsCleanPersonalInvalidDocument(), "D3删除成果文档关系业务处理(公共)-D2删除文档关系(公共)-是否清理个人无效文档不能为空", false);
                Assert.isNull(deleteUnstructuredRelationshipComReqDto.getOwnEntityId(), "D3删除成果文档关系业务处理(公共)-D2删除文档关系(公共)-归属内容表主键ID不能为空", false);
                Assert.isNull(deleteUnstructuredRelationshipComReqDto.getSpaceId(), "D3删除成果文档关系业务处理(公共)-D2删除文档关系(公共)-创建于空间ID不能为空", false);
                deleteUnstructuredRelationshipComRespDto = unstructuredDataService.deleteUnstructuredRelationshipCom(deleteUnstructuredRelationshipComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            }
        }
        DeleteAchUnstrRelBizProComRespDto retData = new DeleteAchUnstrRelBizProComRespDto();


        return retData;
    }

    /**
     * D3执行准备规划相关资料文档关系(公共)[9775]
     * gen by moon at 6/9/2024, 4:36:01 PM
     */
    @Trace(operationName = "D3执行准备规划相关资料文档关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementPerpareDataDocRelOrDocComRespDto implementPerpareDataDocRelOrDocCom(ImplementPerpareDataDocRelOrDocComReqDto reqDto) {


        OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle_1 = null;
        ImplementContentTypeChangeTableTypeComRespDto implementContentTypeChangeTableTypeComRespDto_1 = null;
//步骤0: M3执行第十一接收字段（特殊方法） - implementElevenReceivingField
        //ModelCode: receptionService
        ImplementElevenReceivingFieldRespDto receptionServiceRes = null;
        ImplementElevenReceivingFieldReqDto receptionServiceReq = new ImplementElevenReceivingFieldReqDto();
        if (reqDto != null) {
            receptionServiceReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1859220_1
            receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1859221_1
        }

        /*M3-接收入参字段[9482]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getEvaObjTargetCycleId(), "D3执行准备规划相关资料文档关系(公共)-M3-接收入参字段-被评对象目标周期ID不能为空", false);
        Assert.isNull(receptionServiceReq.getEvaluationTemplateId(), "D3执行准备规划相关资料文档关系(公共)-M3-接收入参字段-冗余评价模板ID不能为空", false);
        receptionServiceRes = nbUnstructuredData.implementElevenReceivingField(receptionServiceReq);


//步骤1: 3-3-09查被评对象目标周期详情 - queryEvaObjTargetCycleDetail
        OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle = null;
        QueryEvaObjTargetCycleDetailReq queryEvaObjTargetCycleDetailReq = new QueryEvaObjTargetCycleDetailReq();
        if (reqDto != null) {
            queryEvaObjTargetCycleDetailReq.setEvaObjTargetCycleId(reqDto.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:1859313_1
            queryEvaObjTargetCycleDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1859314_1
        }

        /*3-3-09查被评对象目标周期详情[2313]   */
        Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjTargetCycleId(), "D3执行准备规划相关资料文档关系(公共)-3-3-09查被评对象目标周期详情-被评对象目标周期ID不能为空", false);
        Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaluationTemplateId(), "D3执行准备规划相关资料文档关系(公共)-3-3-09查被评对象目标周期详情-冗余评价模板ID不能为空", false);
        omsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.queryEvaObjTargetCycleDetail(queryEvaObjTargetCycleDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        omsEvaluationObjectTargetCycle_1 = omsEvaluationObjectTargetCycle;

//步骤2: D3执行内容类型互转表类型(公共) - implementContentTypeChangeTableTypeCom
        ImplementContentTypeChangeTableTypeComRespDto implementContentTypeChangeTableTypeComRespDto = null;
        if (omsEvaluationObjectTargetCycle != null) {
            ImplementContentTypeChangeTableTypeComReqDto implementContentTypeChangeTableTypeComReqDto = new ImplementContentTypeChangeTableTypeComReqDto();
            if (omsEvaluationObjectTargetCycle != null) {
                implementContentTypeChangeTableTypeComReqDto.setTargetCycleContentTypeCode(omsEvaluationObjectTargetCycle.getTargetCycleContentTypeCode());//SimpleFieldAssign//sourceId:1859320_1
            }

            /*D3执行内容类型互转表类型(公共)[5354]   */
            Assert.isNull(implementContentTypeChangeTableTypeComReqDto.getTargetCycleContentTypeCode(), "D3执行准备规划相关资料文档关系(公共)-D3执行内容类型互转表类型(公共)-关联目标内容类型编码不能为空", false);
            implementContentTypeChangeTableTypeComRespDto = indexSystemService.implementContentTypeChangeTableTypeCom(implementContentTypeChangeTableTypeComReqDto)/*vcase invoke isSameApp*/;


            implementContentTypeChangeTableTypeComRespDto_1 = implementContentTypeChangeTableTypeComRespDto;
        }

        ImplementPerpareDataDocRelOrDocComRespDto retData = new ImplementPerpareDataDocRelOrDocComRespDto();
        if (implementContentTypeChangeTableTypeComRespDto_1 != null) {
            retData.setTableTypeCode(implementContentTypeChangeTableTypeComRespDto_1.getTableTypeCode());//SimpleFieldAssign//sourceId:1859327_1
        }
        if (omsEvaluationObjectTargetCycle_1 != null) {
            retData.setEvaObjTargetCycleCode(omsEvaluationObjectTargetCycle_1.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1859324_1
            retData.setTargetCycleContentId(omsEvaluationObjectTargetCycle_1.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1859325_1
            retData.setCycleId(omsEvaluationObjectTargetCycle_1.getCycleId());//SimpleFieldAssign//sourceId:1859326_1
        }


        return retData;
    }

    /**
     * D3执行分析是否结果文档(公共)[9780]
     * gen by moon at 6/9/2024, 4:36:15 PM
     */
    @Trace(operationName = "D3执行分析是否结果文档(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementAnalyzeIsResultDocComRespDto implementAnalyzeIsResultDocCom(ImplementAnalyzeIsResultDocComReqDto reqDto) {


        ImplementElevenReceivingFieldRespDto receptionServiceRes_3 = null;
//virtualUsage M3-约定字段：是否  69847
        //ModelCode: receptionService
        ImplementElevenReceivingFieldRespDto receptionServiceRes = null;
        ImplementElevenReceivingFieldReqDto receptionServiceReq = new ImplementElevenReceivingFieldReqDto();
        receptionServiceReq.setCustomField1("TRUE");//CUSTOM_CONVENTION//sourceId:1860683_1_69847
        receptionServiceReq.setCustomField2("FALSE");//CUSTOM_CONVENTION//sourceId:1860684_1_69847

        /*M3-约定字段：是否[9482]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getCustomField1(), "D3执行分析是否结果文档(公共)-M3-约定字段：是否-自定义字段1不能为空", false);
        Assert.isNull(receptionServiceReq.getCustomField2(), "D3执行分析是否结果文档(公共)-M3-约定字段：是否-自定义字段2不能为空", false);
        receptionServiceRes = nbUnstructuredData.implementElevenReceivingField(receptionServiceReq);


        if ((reqDto != null && reqDto.getIsActualReceptionCycle() == null || reqDto != null && reqDto.getIsActualReceptionCycle() != null && reqDto.getIsActualReceptionCycle().equals("FALSE"))) {
            //if((D3执行分析是否结果文档(公共).是否实际验收周期 值等于空  or D3执行分析是否结果文档(公共).是否实际验收周期 等于 否))  69845

//ModelCode: receptionService
            ImplementElevenReceivingFieldRespDto receptionServiceRes_2 = null;
            ImplementElevenReceivingFieldReqDto receptionServiceReq_1 = new ImplementElevenReceivingFieldReqDto();
            if (receptionServiceRes != null) {
                receptionServiceReq_1.setIsResult(receptionServiceRes.getCustomField2());//SimpleFieldAssign//sourceId:1860676_1_69848
            }

            /*M3-接收出参字段：是否结果文档[9482]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_1.getIsResult(), "D3执行分析是否结果文档(公共)-M3-接收出参字段：是否结果文档-冗余是否结果文档不能为空", false);
            receptionServiceRes_2 = nbUnstructuredData.implementElevenReceivingField(receptionServiceReq_1);


            receptionServiceRes_3 = receptionServiceRes_2;
        } else if ((reqDto != null && reqDto.getIsActualReceptionCycle() != null && reqDto.getIsActualReceptionCycle().equals("TRUE"))) {
            //elseif(D3执行分析是否结果文档(公共).是否实际验收周期 等于 是)  69846

//ModelCode: receptionService
            ImplementElevenReceivingFieldRespDto receptionServiceRes_4 = null;
            ImplementElevenReceivingFieldReqDto receptionServiceReq_2 = new ImplementElevenReceivingFieldReqDto();
            if (receptionServiceRes != null) {
                receptionServiceReq_2.setIsResult(receptionServiceRes.getCustomField1());//SimpleFieldAssign//sourceId:1860676_1_69849
            }

            /*M3-接收出参字段：是否结果文档[9482]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_2.getIsResult(), "D3执行分析是否结果文档(公共)-M3-接收出参字段：是否结果文档-冗余是否结果文档不能为空", false);
            receptionServiceRes_4 = nbUnstructuredData.implementElevenReceivingField(receptionServiceReq_2);


            receptionServiceRes_3 = receptionServiceRes_4;
        }
        ImplementAnalyzeIsResultDocComRespDto retData = new ImplementAnalyzeIsResultDocComRespDto();
        if (receptionServiceRes_3 != null) {
            retData.setIsResult(receptionServiceRes_3.getIsResult());//SimpleFieldAssign//sourceId:1860685_1
        }


        return retData;
    }

    /**
     * D3执行按身份人员查目标下网盘内容列表(公共)[10010]
     * gen by moon at 8/10/2024, 9:44:37 PM
     */
    @Trace(operationName = "D3执行按身份人员查目标下网盘内容列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementTargetNetDiskContentByOriRoleMemComRespDto implementTargetNetDiskContentByOriRoleMemCom(ImplementTargetNetDiskContentByOriRoleMemComReqDto reqDto) {


        List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle_1 = new ArrayList<>();
//virtualUsage D3查询小圈子成员列表(公共)  71814
        QueryVirtualOrgMemListComRespDto queryVirtualOrgMemListComRespDto = null;
        QueryVirtualOrgMemListComReqDto queryVirtualOrgMemListComReqDto = new QueryVirtualOrgMemListComReqDto();
        queryVirtualOrgMemListComReqDto.setUseScene("TARGET_PLAN_SCENE");//sourceId:1945630_1_71814
        queryVirtualOrgMemListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1945633_1_71814
        if (reqDto != null) {
            queryVirtualOrgMemListComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1945634_1_71814
            queryVirtualOrgMemListComReqDto.setIsPersonCharge(reqDto.getIsPersonCharge());//SimpleFieldAssign//sourceId:1945631_1_71814
            queryVirtualOrgMemListComReqDto.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1966894_1_71814
            queryVirtualOrgMemListComReqDto.setEntityId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1966869_1_71814
            queryVirtualOrgMemListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1945629_1_71814
        }

        /*D3查询小圈子成员列表(公共)[8698]   */
        Assert.isNull(queryVirtualOrgMemListComReqDto.getUseScene(), "D3执行按身份人员查目标下网盘内容列表(公共)-D3查询小圈子成员列表(公共)-虚拟组织使用场景不能为空", false);
        Assert.isNull(queryVirtualOrgMemListComReqDto.getSubjectLifeCycle(), "D3执行按身份人员查目标下网盘内容列表(公共)-D3查询小圈子成员列表(公共)-主体生命周期不能为空", false);
        Assert.isNull(queryVirtualOrgMemListComReqDto.getEvaluationTemplateId(), "D3执行按身份人员查目标下网盘内容列表(公共)-D3查询小圈子成员列表(公共)-归属对象ID不能为空", false);
        queryVirtualOrgMemListComRespDto = virtualOrgService.queryVirtualOrgMemListCom(queryVirtualOrgMemListComReqDto)/*vcase invoke isSameApp*/;


        if ((queryVirtualOrgMemListComRespDto != null && queryVirtualOrgMemListComRespDto.getVirtualOrgMemberList() != null && queryVirtualOrgMemListComRespDto.getVirtualOrgMemberList().size() > 0)) {
            //if(D3查询小圈子成员列表(公共).虚拟组织成员列表数据集条数 大于 0)  71815

            JudgeBetweenFatherSonValueTransferComRespDto judgeBetweenFatherSonValueTransferComRespDto = null;
            JudgeBetweenFatherSonValueTransferComReqDto judgeBetweenFatherSonValueTransferComReqDto = new JudgeBetweenFatherSonValueTransferComReqDto();
            if (reqDto != null) {
                judgeBetweenFatherSonValueTransferComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1956049_1_71979
                judgeBetweenFatherSonValueTransferComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1956046_1_71979
                judgeBetweenFatherSonValueTransferComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1956047_1_71979
                judgeBetweenFatherSonValueTransferComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1956048_1_71979
                judgeBetweenFatherSonValueTransferComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1956051_1_71979
            }

            /*D3判断父子中周期传值(公共)[4854]   */
            Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getCycleId(), "D3执行按身份人员查目标下网盘内容列表(公共)-D3判断父子中周期传值(公共)-周期ID不能为空", false);
            Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsParentCycle(), "D3执行按身份人员查目标下网盘内容列表(公共)-D3判断父子中周期传值(公共)-是否父周期不能为空", false);
            Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsMetaphase(), "D3执行按身份人员查目标下网盘内容列表(公共)-D3判断父子中周期传值(公共)-是否中期不能为空", false);
            Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsSubCycle(), "D3执行按身份人员查目标下网盘内容列表(公共)-D3判断父子中周期传值(公共)-是否子周期不能为空", false);
            Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getEvaluationTemplateId(), "D3执行按身份人员查目标下网盘内容列表(公共)-D3判断父子中周期传值(公共)-评价模板ID不能为空", false);
            judgeBetweenFatherSonValueTransferComRespDto = targetCycleService.judgeBetweenFatherSonValueTransferCom(judgeBetweenFatherSonValueTransferComReqDto)/*vcase invoke isSameApp*/;


            List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle = new ArrayList<>();
            if (queryVirtualOrgMemListComRespDto != null && judgeBetweenFatherSonValueTransferComRespDto != null) {
                BatchQueryEvaObjTargetCycleListByIdsReq batchQueryEvaObjTargetCycleListByIdsReq = new BatchQueryEvaObjTargetCycleListByIdsReq();
                batchQueryEvaObjTargetCycleListByIdsReq.setIsArchive("FALSE");//sourceId:1945644_1_71816
                if (queryVirtualOrgMemListComRespDto != null && queryVirtualOrgMemListComRespDto.getVirtualOrgMemberList() != null && !CollectionUtil.isEmpty(queryVirtualOrgMemListComRespDto.getVirtualOrgMemberList())) {
                    batchQueryEvaObjTargetCycleListByIdsReq.setEvaObjTargetCycleList(queryVirtualOrgMemListComRespDto.getVirtualOrgMemberList().stream().map(item -> item.getEntityId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1945636_1_71816
                }
                if (reqDto != null) {
                    batchQueryEvaObjTargetCycleListByIdsReq.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1945637_1_71816
                    batchQueryEvaObjTargetCycleListByIdsReq.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1945639_1_71816
                    batchQueryEvaObjTargetCycleListByIdsReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1945642_1_71816
                }
                if (judgeBetweenFatherSonValueTransferComRespDto != null) {
                    batchQueryEvaObjTargetCycleListByIdsReq.setCycleId(judgeBetweenFatherSonValueTransferComRespDto.getCycleId());//SimpleFieldAssign//sourceId:1945654_1_71816
                    batchQueryEvaObjTargetCycleListByIdsReq.setIsParentCycle(judgeBetweenFatherSonValueTransferComRespDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1945646_1_71816
                    batchQueryEvaObjTargetCycleListByIdsReq.setIsMetaphase(judgeBetweenFatherSonValueTransferComRespDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1945652_1_71816
                    batchQueryEvaObjTargetCycleListByIdsReq.setIsSubCycle(judgeBetweenFatherSonValueTransferComRespDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1945653_1_71816
                }

                /*3-3-09批量查询被评对象目标周期列表By目标内容Ids[5396]   */
                Assert.isNull(batchQueryEvaObjTargetCycleListByIdsReq.getEvaObjEntityId(), "D3执行按身份人员查目标下网盘内容列表(公共)-3-3-09批量查询被评对象目标周期列表By目标内容Ids-被评对象内容表主键ID不能为空", false);
                Assert.isNull(batchQueryEvaObjTargetCycleListByIdsReq.getEvaObjTypeCode(), "D3执行按身份人员查目标下网盘内容列表(公共)-3-3-09批量查询被评对象目标周期列表By目标内容Ids-被评对象类型编码不能为空", false);
                Assert.isNull(batchQueryEvaObjTargetCycleListByIdsReq.getIsArchive(), "D3执行按身份人员查目标下网盘内容列表(公共)-3-3-09批量查询被评对象目标周期列表By目标内容Ids-是否存档不能为空", false);
                Assert.isNull(batchQueryEvaObjTargetCycleListByIdsReq.getEvaluationTemplateId(), "D3执行按身份人员查目标下网盘内容列表(公共)-3-3-09批量查询被评对象目标周期列表By目标内容Ids-冗余评价模板ID不能为空", false);
                listOmsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.batchQueryEvaObjTargetCycleListByIds(batchQueryEvaObjTargetCycleListByIdsReq)/*vcase invoke 本地 method 方法调用;*/;


                listOmsEvaluationObjectTargetCycle_1 = listOmsEvaluationObjectTargetCycle;
            }
        }
        ImplementTargetNetDiskContentByOriRoleMemComRespDto retData = new ImplementTargetNetDiskContentByOriRoleMemComRespDto();
        retData.setEvaObjTargetCycleList(listOmsEvaluationObjectTargetCycle_1.stream().map(item -> BeanUtil.toBean(item, EvaObjTargetCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1946068_1


        return retData;
    }

    /**
     * D3执行按身份人员查目标下网盘文档列表(公共)[10011]
     * gen by moon at 12/10/2024, 4:58:28 PM
     */
    @Trace(operationName = "D3执行按身份人员查目标下网盘文档列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementTargetNetDiskDocByOriRoleMemComRespDto implementTargetNetDiskDocByOriRoleMemCom(ImplementTargetNetDiskDocByOriRoleMemComReqDto reqDto) {


        ImplementTargetNetDiskDocByTargetCycleIdComRespDto implementTargetNetDiskDocByTargetCycleIdComRespDto_1 = null;
//virtualUsage D3执行按身份人员查目标下网盘内容列表(公共)  71821
        ImplementTargetNetDiskContentByOriRoleMemComRespDto implementTargetNetDiskContentByOriRoleMemComRespDto = null;
        ImplementTargetNetDiskContentByOriRoleMemComReqDto implementTargetNetDiskContentByOriRoleMemComReqDto = new ImplementTargetNetDiskContentByOriRoleMemComReqDto();
        if (reqDto != null) {
            implementTargetNetDiskContentByOriRoleMemComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1946084_1_71821
            implementTargetNetDiskContentByOriRoleMemComReqDto.setIsPersonCharge(reqDto.getIsPersonCharge());//SimpleFieldAssign//sourceId:1946085_1_71821
            implementTargetNetDiskContentByOriRoleMemComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1946087_1_71821
            implementTargetNetDiskContentByOriRoleMemComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1946088_1_71821
            implementTargetNetDiskContentByOriRoleMemComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1966870_1_71821
            implementTargetNetDiskContentByOriRoleMemComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1946092_1_71821
            implementTargetNetDiskContentByOriRoleMemComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1946089_1_71821
            implementTargetNetDiskContentByOriRoleMemComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1946090_1_71821
            implementTargetNetDiskContentByOriRoleMemComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1946091_1_71821
            implementTargetNetDiskContentByOriRoleMemComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1946086_1_71821
        }

        /*D3执行按身份人员查目标下网盘内容列表(公共)[10010]   */
        Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getEvaObjEntityId(), "D3执行按身份人员查目标下网盘文档列表(公共)-D3执行按身份人员查目标下网盘内容列表(公共)-被评对象内容表主键ID不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getEvaObjTypeCode(), "D3执行按身份人员查目标下网盘文档列表(公共)-D3执行按身份人员查目标下网盘内容列表(公共)-被评对象类型编码不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getCycleId(), "D3执行按身份人员查目标下网盘文档列表(公共)-D3执行按身份人员查目标下网盘内容列表(公共)-周期ID不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getIsParentCycle(), "D3执行按身份人员查目标下网盘文档列表(公共)-D3执行按身份人员查目标下网盘内容列表(公共)-是否父周期不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getIsMetaphase(), "D3执行按身份人员查目标下网盘文档列表(公共)-D3执行按身份人员查目标下网盘内容列表(公共)-是否中期不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getIsSubCycle(), "D3执行按身份人员查目标下网盘文档列表(公共)-D3执行按身份人员查目标下网盘内容列表(公共)-是否子周期不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByOriRoleMemComReqDto.getEvaluationTemplateId(), "D3执行按身份人员查目标下网盘文档列表(公共)-D3执行按身份人员查目标下网盘内容列表(公共)-冗余评价模板ID不能为空", false);
        implementTargetNetDiskContentByOriRoleMemComRespDto = implementTargetNetDiskContentByOriRoleMemCom(implementTargetNetDiskContentByOriRoleMemComReqDto)/*vcase invoke 同服务,同domain*/;


        if ((implementTargetNetDiskContentByOriRoleMemComRespDto != null && implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList() != null && implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList().size() > 0)) {
            //if(D3执行按身份人员查目标下网盘内容列表(公共).被评对象目标周期列表数据集条数 大于 0)  71822

            ImplementTargetNetDiskDocByTargetCycleIdComRespDto implementTargetNetDiskDocByTargetCycleIdComRespDto = null;
            if (implementTargetNetDiskContentByOriRoleMemComRespDto != null) {
                ImplementTargetNetDiskDocByTargetCycleIdComReqDto implementTargetNetDiskDocByTargetCycleIdComReqDto = new ImplementTargetNetDiskDocByTargetCycleIdComReqDto();
                if (implementTargetNetDiskContentByOriRoleMemComRespDto != null && implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList() != null && !CollectionUtil.isEmpty(implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList())) {
                    implementTargetNetDiskDocByTargetCycleIdComReqDto.setCycleStageDataList(implementTargetNetDiskContentByOriRoleMemComRespDto.getEvaObjTargetCycleList().stream().map(item -> item.getEvaObjTargetCycleId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:2036631_1_73726
                }
                if (reqDto != null) {
                    implementTargetNetDiskDocByTargetCycleIdComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:2036635_1_73726
                    implementTargetNetDiskDocByTargetCycleIdComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:2036636_1_73726
                    implementTargetNetDiskDocByTargetCycleIdComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:2036649_1_73726
                    implementTargetNetDiskDocByTargetCycleIdComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:2036650_1_73726
                    implementTargetNetDiskDocByTargetCycleIdComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:2036651_1_73726
                    implementTargetNetDiskDocByTargetCycleIdComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:2036652_1_73726
                    implementTargetNetDiskDocByTargetCycleIdComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:2036632_1_73726
                    implementTargetNetDiskDocByTargetCycleIdComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:2036633_1_73726
                }

                /*D3执行按工作周期查目标下网盘文档列表(公共)[10450]   */
                Assert.isNull(implementTargetNetDiskDocByTargetCycleIdComReqDto.getEvaluationTemplateId(), "D3执行按身份人员查目标下网盘文档列表(公共)-D3执行按工作周期查目标下网盘文档列表(公共)-冗余评价模板ID不能为空", false);
                Assert.isNull(implementTargetNetDiskDocByTargetCycleIdComReqDto.getSpaceId(), "D3执行按身份人员查目标下网盘文档列表(公共)-D3执行按工作周期查目标下网盘文档列表(公共)-创建于空间ID不能为空", false);
                implementTargetNetDiskDocByTargetCycleIdComRespDto = implementTargetNetDiskDocByTargetCycleIdCom(implementTargetNetDiskDocByTargetCycleIdComReqDto)/*vcase invoke 同服务,同domain*/;


                implementTargetNetDiskDocByTargetCycleIdComRespDto_1 = implementTargetNetDiskDocByTargetCycleIdComRespDto;
            }
        }
        ImplementTargetNetDiskDocByOriRoleMemComRespDto retData = new ImplementTargetNetDiskDocByOriRoleMemComRespDto();
        if (implementTargetNetDiskDocByTargetCycleIdComRespDto_1 != null) {
            retData.setDocumentList(implementTargetNetDiskDocByTargetCycleIdComRespDto_1.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:2036653_1
        }


        return retData;
    }

    /**
     * D3执行按部门查目标下网盘内容列表(公共)[10016]
     * gen by moon at 8/10/2024, 9:44:51 PM
     */
    @Trace(operationName = "D3执行按部门查目标下网盘内容列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementTargetNetDiskContentByDeptIdComRespDto implementTargetNetDiskContentByDeptIdCom(ImplementTargetNetDiskContentByDeptIdComReqDto reqDto) {


        List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle_1 = new ArrayList<>();
//virtualUsage D3查询目标内容部门小圈子列表(公共)  71829
        QueryTargetContDeptSmallCircleListComRespDto queryTargetContDeptSmallCircleListComRespDto = null;
        QueryTargetContDeptSmallCircleListComReqDto queryTargetContDeptSmallCircleListComReqDto = new QueryTargetContDeptSmallCircleListComReqDto();
        queryTargetContDeptSmallCircleListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1947023_1_71829
        if (reqDto != null) {
            queryTargetContDeptSmallCircleListComReqDto.setUseScene(reqDto.getUseScene());//SimpleFieldAssign//sourceId:1947022_1_71829
            queryTargetContDeptSmallCircleListComReqDto.setDeptType(reqDto.getDeptType());//SimpleFieldAssign//sourceId:1947018_1_71829
            queryTargetContDeptSmallCircleListComReqDto.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1947019_1_71829
            queryTargetContDeptSmallCircleListComReqDto.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1950455_1_71829
            queryTargetContDeptSmallCircleListComReqDto.setEntityId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1966886_1_71829
            queryTargetContDeptSmallCircleListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1947021_1_71829
            queryTargetContDeptSmallCircleListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1947024_1_71829
        }

        /*D3查询目标内容部门小圈子列表(公共)[9346]   */
        Assert.isNull(queryTargetContDeptSmallCircleListComReqDto.getSubjectLifeCycle(), "D3执行按部门查目标下网盘内容列表(公共)-D3查询目标内容部门小圈子列表(公共)-主体生命周期不能为空", false);
        Assert.isNull(queryTargetContDeptSmallCircleListComReqDto.getSpaceId(), "D3执行按部门查目标下网盘内容列表(公共)-D3查询目标内容部门小圈子列表(公共)-创建于空间ID不能为空", false);
        queryTargetContDeptSmallCircleListComRespDto = smallCircleCommonService.queryTargetContDeptSmallCircleListCom(queryTargetContDeptSmallCircleListComReqDto)/*vcase invoke isSameApp*/;


        if ((queryTargetContDeptSmallCircleListComRespDto != null && queryTargetContDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList() != null && queryTargetContDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList().size() > 0)) {
            //if(D3查询目标内容部门小圈子列表(公共).虚拟成员部门列表数据集条数 大于 0)  71830

            JudgeBetweenFatherSonValueTransferComRespDto judgeBetweenFatherSonValueTransferComRespDto = null;
            JudgeBetweenFatherSonValueTransferComReqDto judgeBetweenFatherSonValueTransferComReqDto = new JudgeBetweenFatherSonValueTransferComReqDto();
            if (reqDto != null) {
                judgeBetweenFatherSonValueTransferComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1956064_1_71980
                judgeBetweenFatherSonValueTransferComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1956061_1_71980
                judgeBetweenFatherSonValueTransferComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1956062_1_71980
                judgeBetweenFatherSonValueTransferComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1956063_1_71980
                judgeBetweenFatherSonValueTransferComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1956066_1_71980
            }

            /*D3判断父子中周期传值(公共)[4854]   */
            Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getCycleId(), "D3执行按部门查目标下网盘内容列表(公共)-D3判断父子中周期传值(公共)-周期ID不能为空", false);
            Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsParentCycle(), "D3执行按部门查目标下网盘内容列表(公共)-D3判断父子中周期传值(公共)-是否父周期不能为空", false);
            Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsMetaphase(), "D3执行按部门查目标下网盘内容列表(公共)-D3判断父子中周期传值(公共)-是否中期不能为空", false);
            Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsSubCycle(), "D3执行按部门查目标下网盘内容列表(公共)-D3判断父子中周期传值(公共)-是否子周期不能为空", false);
            Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getEvaluationTemplateId(), "D3执行按部门查目标下网盘内容列表(公共)-D3判断父子中周期传值(公共)-评价模板ID不能为空", false);
            judgeBetweenFatherSonValueTransferComRespDto = targetCycleService.judgeBetweenFatherSonValueTransferCom(judgeBetweenFatherSonValueTransferComReqDto)/*vcase invoke isSameApp*/;


            List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle = new ArrayList<>();
            if (queryTargetContDeptSmallCircleListComRespDto != null && judgeBetweenFatherSonValueTransferComRespDto != null) {
                BatchQueryEvaObjTargetCycleListByIdsReq batchQueryEvaObjTargetCycleListByIdsReq = new BatchQueryEvaObjTargetCycleListByIdsReq();
                batchQueryEvaObjTargetCycleListByIdsReq.setIsArchive("FALSE");//sourceId:1947056_1_71832
                if (queryTargetContDeptSmallCircleListComRespDto != null && queryTargetContDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList() != null && !CollectionUtil.isEmpty(queryTargetContDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList())) {
                    batchQueryEvaObjTargetCycleListByIdsReq.setEvaObjTargetCycleList(queryTargetContDeptSmallCircleListComRespDto.getVirtualOrgMemberDeptList().stream().map(item -> item.getEntityId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1947048_1_71832
                }
                if (reqDto != null) {
                    batchQueryEvaObjTargetCycleListByIdsReq.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1947049_1_71832
                    batchQueryEvaObjTargetCycleListByIdsReq.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1947050_1_71832
                    batchQueryEvaObjTargetCycleListByIdsReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1947055_1_71832
                }
                if (judgeBetweenFatherSonValueTransferComRespDto != null) {
                    batchQueryEvaObjTargetCycleListByIdsReq.setCycleId(judgeBetweenFatherSonValueTransferComRespDto.getCycleId());//SimpleFieldAssign//sourceId:1947054_1_71832
                    batchQueryEvaObjTargetCycleListByIdsReq.setIsParentCycle(judgeBetweenFatherSonValueTransferComRespDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1947051_1_71832
                    batchQueryEvaObjTargetCycleListByIdsReq.setIsMetaphase(judgeBetweenFatherSonValueTransferComRespDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1947052_1_71832
                    batchQueryEvaObjTargetCycleListByIdsReq.setIsSubCycle(judgeBetweenFatherSonValueTransferComRespDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1947053_1_71832
                }

                /*3-3-09批量查询被评对象目标周期列表By目标内容Ids[5396]   */
                Assert.isNull(batchQueryEvaObjTargetCycleListByIdsReq.getEvaObjEntityId(), "D3执行按部门查目标下网盘内容列表(公共)-3-3-09批量查询被评对象目标周期列表By目标内容Ids-被评对象内容表主键ID不能为空", false);
                Assert.isNull(batchQueryEvaObjTargetCycleListByIdsReq.getEvaObjTypeCode(), "D3执行按部门查目标下网盘内容列表(公共)-3-3-09批量查询被评对象目标周期列表By目标内容Ids-被评对象类型编码不能为空", false);
                Assert.isNull(batchQueryEvaObjTargetCycleListByIdsReq.getIsArchive(), "D3执行按部门查目标下网盘内容列表(公共)-3-3-09批量查询被评对象目标周期列表By目标内容Ids-是否存档不能为空", false);
                Assert.isNull(batchQueryEvaObjTargetCycleListByIdsReq.getEvaluationTemplateId(), "D3执行按部门查目标下网盘内容列表(公共)-3-3-09批量查询被评对象目标周期列表By目标内容Ids-冗余评价模板ID不能为空", false);
                listOmsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.batchQueryEvaObjTargetCycleListByIds(batchQueryEvaObjTargetCycleListByIdsReq)/*vcase invoke 本地 method 方法调用;*/;


                listOmsEvaluationObjectTargetCycle_1 = listOmsEvaluationObjectTargetCycle;
            }
        }
        ImplementTargetNetDiskContentByDeptIdComRespDto retData = new ImplementTargetNetDiskContentByDeptIdComRespDto();
        retData.setEvaObjTargetCycleList(listOmsEvaluationObjectTargetCycle_1.stream().map(item -> BeanUtil.toBean(item, EvaObjTargetCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1947081_1


        return retData;
    }

    /**
     * D3执行按部门查目标下网盘文档列表(公共)[10017]
     * gen by moon at 8/10/2024, 9:44:58 PM
     */
    @Trace(operationName = "D3执行按部门查目标下网盘文档列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementTargetNetDiskDocByDeptIdComRespDto implementTargetNetDiskDocByDeptIdCom(ImplementTargetNetDiskDocByDeptIdComReqDto reqDto) {


        BatchQueryUnstructuredRelationshipInstanceComRespDto batchQueryUnstructuredRelationshipInstanceComRespDto_1 = null;
//virtualUsage D3执行按部门查目标下网盘内容列表(公共)  71836
        ImplementTargetNetDiskContentByDeptIdComRespDto implementTargetNetDiskContentByDeptIdComRespDto = null;
        ImplementTargetNetDiskContentByDeptIdComReqDto implementTargetNetDiskContentByDeptIdComReqDto = new ImplementTargetNetDiskContentByDeptIdComReqDto();
        if (reqDto != null) {
            implementTargetNetDiskContentByDeptIdComReqDto.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1947109_1_71836
            implementTargetNetDiskContentByDeptIdComReqDto.setEvaObjEntityId(reqDto.getEvaObjEntityId());//SimpleFieldAssign//sourceId:1947110_1_71836
            implementTargetNetDiskContentByDeptIdComReqDto.setEvaObjTypeCode(reqDto.getEvaObjTypeCode());//SimpleFieldAssign//sourceId:1947111_1_71836
            implementTargetNetDiskContentByDeptIdComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1966889_1_71836
            implementTargetNetDiskContentByDeptIdComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1947115_1_71836
            implementTargetNetDiskContentByDeptIdComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1947112_1_71836
            implementTargetNetDiskContentByDeptIdComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1947113_1_71836
            implementTargetNetDiskContentByDeptIdComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1947114_1_71836
            implementTargetNetDiskContentByDeptIdComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1947116_1_71836
            implementTargetNetDiskContentByDeptIdComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1947117_1_71836
        }

        /*D3执行按部门查目标下网盘内容列表(公共)[10016]   */
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getDeptId(), "D3执行按部门查目标下网盘文档列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-虚拟组织下部门ID不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getEvaObjEntityId(), "D3执行按部门查目标下网盘文档列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-被评对象内容表主键ID不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getEvaObjTypeCode(), "D3执行按部门查目标下网盘文档列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-被评对象类型编码不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getCycleId(), "D3执行按部门查目标下网盘文档列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-周期ID不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getIsParentCycle(), "D3执行按部门查目标下网盘文档列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-是否父周期不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getIsMetaphase(), "D3执行按部门查目标下网盘文档列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-是否中期不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getIsSubCycle(), "D3执行按部门查目标下网盘文档列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-是否子周期不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getEvaluationTemplateId(), "D3执行按部门查目标下网盘文档列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-冗余评价模板ID不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getSpaceId(), "D3执行按部门查目标下网盘文档列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-创建于空间ID不能为空", false);
        implementTargetNetDiskContentByDeptIdComRespDto = implementTargetNetDiskContentByDeptIdCom(implementTargetNetDiskContentByDeptIdComReqDto)/*vcase invoke 同服务,同domain*/;


        if ((implementTargetNetDiskContentByDeptIdComRespDto != null && implementTargetNetDiskContentByDeptIdComRespDto.getEvaObjTargetCycleList() != null && implementTargetNetDiskContentByDeptIdComRespDto.getEvaObjTargetCycleList().size() > 0)) {
            //if(D3执行按部门查目标下网盘内容列表(公共).被评对象目标周期列表数据集条数 大于 0)  71837

            BatchQueryUnstructuredRelationshipInstanceComRespDto batchQueryUnstructuredRelationshipInstanceComRespDto = null;
            if (implementTargetNetDiskContentByDeptIdComRespDto != null) {
                BatchQueryUnstructuredRelationshipInstanceComReqDto batchQueryUnstructuredRelationshipInstanceComReqDto = new BatchQueryUnstructuredRelationshipInstanceComReqDto();
                if (implementTargetNetDiskContentByDeptIdComRespDto != null && implementTargetNetDiskContentByDeptIdComRespDto.getEvaObjTargetCycleList() != null && !CollectionUtil.isEmpty(implementTargetNetDiskContentByDeptIdComRespDto.getEvaObjTargetCycleList())) {
                    batchQueryUnstructuredRelationshipInstanceComReqDto.setUnstructuredRelationshipList(implementTargetNetDiskContentByDeptIdComRespDto.getEvaObjTargetCycleList().stream().map(item -> item.getCycleId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1947506_1_71838
                }
                if (reqDto != null) {
                    batchQueryUnstructuredRelationshipInstanceComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1956093_1_71838
                    batchQueryUnstructuredRelationshipInstanceComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1947507_1_71838
                    batchQueryUnstructuredRelationshipInstanceComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1947508_1_71838
                    batchQueryUnstructuredRelationshipInstanceComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1957471_1_71838
                    batchQueryUnstructuredRelationshipInstanceComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1947509_1_71838
                    batchQueryUnstructuredRelationshipInstanceComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1947510_1_71838
                    batchQueryUnstructuredRelationshipInstanceComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1947515_1_71838
                    batchQueryUnstructuredRelationshipInstanceComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1947516_1_71838
                }

                /*D2批量查询文档关系实例by归属工作周期ID(公共)[10014]   */
                Assert.isNull(batchQueryUnstructuredRelationshipInstanceComReqDto.getThemeContentId(), "D3执行按部门查目标下网盘文档列表(公共)-D2批量查询文档关系实例by归属工作周期ID(公共)-主题内容ID不能为空", false);
                Assert.isNull(batchQueryUnstructuredRelationshipInstanceComReqDto.getSpaceId(), "D3执行按部门查目标下网盘文档列表(公共)-D2批量查询文档关系实例by归属工作周期ID(公共)-创建于空间ID不能为空", false);
                batchQueryUnstructuredRelationshipInstanceComRespDto = unstructuredDataService.batchQueryUnstructuredRelationshipInstanceCom(batchQueryUnstructuredRelationshipInstanceComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


                batchQueryUnstructuredRelationshipInstanceComRespDto_1 = batchQueryUnstructuredRelationshipInstanceComRespDto;
            }
        }
        ImplementTargetNetDiskDocByDeptIdComRespDto retData = new ImplementTargetNetDiskDocByDeptIdComRespDto();
        if (batchQueryUnstructuredRelationshipInstanceComRespDto_1 != null) {
            retData.setDocumentList(batchQueryUnstructuredRelationshipInstanceComRespDto_1.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1947546_1
        }


        return retData;
    }

    /**
     * D3新增或修改目标下汇报成果文档关系(公共)[10022]
     * gen by moon at 8/6/2024, 12:53:47 AM
     */
    @Trace(operationName = "D3新增或修改目标下汇报成果文档关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddTargetReportAchievementDocAndDocRelaComRespDto addTargetReportAchievementDocAndDocRelaCom(AddTargetReportAchievementDocAndDocRelaComReqDto reqDto) {


        if ((reqDto != null && reqDto.getDocumentList() != null && reqDto.getDocumentList().size() > 0)) {
            //if(D2新增目标下汇报成果文档关系(公共).文档列表数据集条数 大于 0)  71857

            ImplementAnalyzeAchievementCopyrightOwnInfoComRespDto implementAnalyzeAchievementCopyrightOwnInfoComRespDto = null;
            ImplementAnalyzeAchievementCopyrightOwnInfoComReqDto implementAnalyzeAchievementCopyrightOwnInfoComReqDto = new ImplementAnalyzeAchievementCopyrightOwnInfoComReqDto();
            if (reqDto != null) {
                implementAnalyzeAchievementCopyrightOwnInfoComReqDto.setCopyrightObjectTypeCode(reqDto.getCopyrightObjectTypeCode());//SimpleFieldAssign//sourceId:1949100_1_71864
                implementAnalyzeAchievementCopyrightOwnInfoComReqDto.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1949101_1_71864
            }

            /*D3执行分析成果版权归属对象(公共)[10023]   */
            Assert.isNull(implementAnalyzeAchievementCopyrightOwnInfoComReqDto.getCopyrightObjectTypeCode(), "D3新增或修改目标下汇报成果文档关系(公共)-D3执行分析成果版权归属对象(公共)-版权归属对象类型编码不能为空", false);
            Assert.isNull(implementAnalyzeAchievementCopyrightOwnInfoComReqDto.getCopyrightObjectId(), "D3新增或修改目标下汇报成果文档关系(公共)-D3执行分析成果版权归属对象(公共)-冗余版权归属对象ID不能为空", false);
            implementAnalyzeAchievementCopyrightOwnInfoComRespDto = achievementService.implementAnalyzeAchievementCopyrightOwnInfoCom(implementAnalyzeAchievementCopyrightOwnInfoComReqDto)/*vcase invoke isSameApp*/;


            ImplementSeparateAddOrDeleteDocListComRespDto implementSeparateAddOrDeleteDocListComRespDto = null;
            if (implementAnalyzeAchievementCopyrightOwnInfoComRespDto != null) {
                ImplementSeparateAddOrDeleteDocListComReqDto implementSeparateAddOrDeleteDocListComReqDto = new ImplementSeparateAddOrDeleteDocListComReqDto();
                if (reqDto != null) {
                    implementSeparateAddOrDeleteDocListComReqDto.setIsCleanPersonalInvalidDocument(reqDto.getIsCleanPersonalInvalidDocument());//SimpleFieldAssign//sourceId:1947739_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1947728_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1947729_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1947725_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1947731_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1947732_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1947733_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1947734_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1947735_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1947736_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1947730_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1947738_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1957481_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1947726_1_71858
                }
                if (implementAnalyzeAchievementCopyrightOwnInfoComRespDto != null) {
                    implementSeparateAddOrDeleteDocListComReqDto.setCopyrightObjectTypeCode(implementAnalyzeAchievementCopyrightOwnInfoComRespDto.getCopyrightObjectTypeCode());//SimpleFieldAssign//sourceId:1947740_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setCopyrightObjectId(implementAnalyzeAchievementCopyrightOwnInfoComRespDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1947741_1_71858
                    implementSeparateAddOrDeleteDocListComReqDto.setUserId(implementAnalyzeAchievementCopyrightOwnInfoComRespDto.getUserId());//SimpleFieldAssign//sourceId:1947737_1_71858
                }
                if (reqDto != null && reqDto.getDocumentList() != null && !CollectionUtil.isEmpty(reqDto.getDocumentList())) {
                    implementSeparateAddOrDeleteDocListComReqDto.setDocumentList(reqDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, com.wicket.okrcomponent.integration.dto.DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1947727_1_71858
                }

                /*D2执行分离新增或删除文档列表(公共)[8783]   */
                Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getIsCleanPersonalInvalidDocument(), "D3新增或修改目标下汇报成果文档关系(公共)-D2执行分离新增或删除文档列表(公共)-是否清理个人无效文档不能为空", false);
                Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getDocUseSceneCode(), "D3新增或修改目标下汇报成果文档关系(公共)-D2执行分离新增或删除文档列表(公共)-文档应用业务场景不能为空", false);
                Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getDocUseType(), "D3新增或修改目标下汇报成果文档关系(公共)-D2执行分离新增或删除文档列表(公共)-文档用途类型不能为空", false);
                Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnEntityId(), "D3新增或修改目标下汇报成果文档关系(公共)-D2执行分离新增或删除文档列表(公共)-归属内容表主键ID不能为空", false);
                Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getOwnTableTypeCode(), "D3新增或修改目标下汇报成果文档关系(公共)-D2执行分离新增或删除文档列表(公共)-归属内容表类型编码不能为空", false);
                Assert.isNull(implementSeparateAddOrDeleteDocListComReqDto.getSpaceId(), "D3新增或修改目标下汇报成果文档关系(公共)-D2执行分离新增或删除文档列表(公共)-创建于空间ID不能为空", false);
                implementSeparateAddOrDeleteDocListComRespDto = unstructuredDataService.implementSeparateAddOrDeleteDocListCom(implementSeparateAddOrDeleteDocListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            }
        }
        AddTargetReportAchievementDocAndDocRelaComRespDto retData = new AddTargetReportAchievementDocAndDocRelaComRespDto();


        return retData;
    }

    /**
     * D3查询目标下成果网盘中基层目标周期导航列表(公共)[10032]
     * gen by moon at 7/25/2024, 4:54:46 PM
     */
    @Trace(operationName = "D3查询目标下成果网盘中基层目标周期导航列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto queryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListCom(QueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComReqDto reqDto) {


        ImplementTargetNetDiskContentByDeptIdComRespDto implementTargetNetDiskContentByDeptIdComRespDto_1 = null;
//步骤0: M3执行第十一接收字段（特殊方法） - implementElevenReceivingField
        //ModelCode: receptionService
        ImplementElevenReceivingFieldRespDto receptionServiceRes = null;
        ImplementElevenReceivingFieldReqDto receptionServiceReq = new ImplementElevenReceivingFieldReqDto();
        if (reqDto != null) {
            receptionServiceReq.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1950430_1
            receptionServiceReq.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1950439_1
            receptionServiceReq.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1950437_1
            receptionServiceReq.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1950438_1
            receptionServiceReq.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1950436_1
            receptionServiceReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1950431_1
        }

        /*M3-接收入参字段[9482]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getDeptId(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-M3-接收入参字段-部门ID不能为空", false);
        Assert.isNull(receptionServiceReq.getEvaluationTemplateId(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-M3-接收入参字段-冗余评价模板ID不能为空", false);
        receptionServiceRes = nbUnstructuredData.implementElevenReceivingField(receptionServiceReq);


//步骤1: D3执行按部门查目标下网盘内容列表(公共) - implementTargetNetDiskContentByDeptIdCom
        ImplementTargetNetDiskContentByDeptIdComRespDto implementTargetNetDiskContentByDeptIdComRespDto = null;
        ImplementTargetNetDiskContentByDeptIdComReqDto implementTargetNetDiskContentByDeptIdComReqDto = new ImplementTargetNetDiskContentByDeptIdComReqDto();
        implementTargetNetDiskContentByDeptIdComReqDto.setUseScene("TARGET_PLAN_SCENE");//sourceId:1950459_1
        implementTargetNetDiskContentByDeptIdComReqDto.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1950462_1
        implementTargetNetDiskContentByDeptIdComReqDto.setEvaObjTypeCode("EVA_OBJECT");//sourceId:1950463_1
        implementTargetNetDiskContentByDeptIdComReqDto.setTableTypeCode("OMS_TARGET_OBJECTIVE");//sourceId:1950471_1
        implementTargetNetDiskContentByDeptIdComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1950469_1
        if (reqDto != null) {
            implementTargetNetDiskContentByDeptIdComReqDto.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1950461_1
            implementTargetNetDiskContentByDeptIdComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1950467_1
            implementTargetNetDiskContentByDeptIdComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1950464_1
            implementTargetNetDiskContentByDeptIdComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1950465_1
            implementTargetNetDiskContentByDeptIdComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1950466_1
            implementTargetNetDiskContentByDeptIdComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1950468_1
        }

        /*D3执行按部门查目标下网盘内容列表(公共)[10016]   */
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getUseScene(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-虚拟组织使用场景不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getDeptId(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-虚拟组织下部门ID不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getEvaObjEntityId(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-被评对象内容表主键ID不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getEvaObjTypeCode(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-被评对象类型编码不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getTableTypeCode(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-冗余内容表类型编码不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getCycleId(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-周期ID不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getIsParentCycle(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-是否父周期不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getIsMetaphase(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-是否中期不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getIsSubCycle(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-是否子周期不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getEvaluationTemplateId(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-冗余评价模板ID不能为空", false);
        Assert.isNull(implementTargetNetDiskContentByDeptIdComReqDto.getSpaceId(), "D3查询目标下成果网盘中基层目标周期导航列表(公共)-D3执行按部门查目标下网盘内容列表(公共)-创建于空间ID不能为空", false);
        implementTargetNetDiskContentByDeptIdComRespDto = implementTargetNetDiskContentByDeptIdCom(implementTargetNetDiskContentByDeptIdComReqDto)/*vcase invoke 同服务,同domain*/;


        implementTargetNetDiskContentByDeptIdComRespDto_1 = implementTargetNetDiskContentByDeptIdComRespDto;

        QueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto retData = new QueryTargetNetDiskMidOrGrassrootsPlanTargetCycleMenuListComRespDto();
        if (implementTargetNetDiskContentByDeptIdComRespDto_1 != null) {
            retData.setEvaObjTargetCycleList(implementTargetNetDiskContentByDeptIdComRespDto_1.getEvaObjTargetCycleList().stream().map(item -> BeanUtil.toBean(item, EvaObjTargetCycleDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1950487_1
        }


        return retData;
    }

    /**
     * D3查询目标内容成果对接文档列表(公共)[10085]
     * gen by moon at 8/13/2024, 6:32:58 PM
     */
    @Trace(operationName = "D3查询目标内容成果对接文档列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryTargetContAchievementDockDocListComRespDto queryTargetContAchievementDockDocListCom(QueryTargetContAchievementDockDocListComReqDto reqDto) {


        QueryTargetContCurOrAllAchievementDockListComRespDto queryTargetContCurOrAllAchievementDockListComRespDto_1 = null;
        BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto_1 = null;
//virtualUsage D3查询目标内容当前或全部成果关系列表(公共)  72126
        QueryTargetContCurOrAllAchievementDockListComRespDto queryTargetContCurOrAllAchievementDockListComRespDto = null;
        QueryTargetContCurOrAllAchievementDockListComReqDto queryTargetContCurOrAllAchievementDockListComReqDto = new QueryTargetContCurOrAllAchievementDockListComReqDto();
        if (reqDto != null) {
            queryTargetContCurOrAllAchievementDockListComReqDto.setIsQueryAllDoc(reqDto.getIsQueryAllDoc());//SimpleFieldAssign//sourceId:1968399_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1968401_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1968409_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1968410_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1968411_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1968412_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setTargetCycleContentId(reqDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:1968402_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1968403_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1968404_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1968405_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1968406_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1968400_1_72126
            queryTargetContCurOrAllAchievementDockListComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1968407_1_72126
        }

        /*D3查询目标内容当前或全部成果关系列表(公共)[10093]   */
        Assert.isNull(queryTargetContCurOrAllAchievementDockListComReqDto.getEvaluationTemplateId(), "D3查询目标内容成果对接文档列表(公共)-D3查询目标内容当前或全部成果关系列表(公共)-冗余评价模板ID不能为空", false);
        queryTargetContCurOrAllAchievementDockListComRespDto = dashboardAchievementService.queryTargetContCurOrAllAchievementDockListCom(queryTargetContCurOrAllAchievementDockListComReqDto)/*vcase invoke isSameApp*/;


        queryTargetContCurOrAllAchievementDockListComRespDto_1 = queryTargetContCurOrAllAchievementDockListComRespDto;
        if ((queryTargetContCurOrAllAchievementDockListComRespDto != null && queryTargetContCurOrAllAchievementDockListComRespDto.getAchievementDockingList() != null && queryTargetContCurOrAllAchievementDockListComRespDto.getAchievementDockingList().size() > 0)) {
            //if(D3查询目标内容当前或全部成果关系列表(公共).对接成果关系列表数据集条数 大于 0)  72077

            BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto = null;
            if (queryTargetContCurOrAllAchievementDockListComRespDto != null) {
                BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto = new BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto();
                batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1965182_1_72078
                if (queryTargetContCurOrAllAchievementDockListComRespDto != null && queryTargetContCurOrAllAchievementDockListComRespDto.getAchievementDockingList() != null && !CollectionUtil.isEmpty(queryTargetContCurOrAllAchievementDockListComRespDto.getAchievementDockingList())) {
                    batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setUnstructuredRelationshipList(queryTargetContCurOrAllAchievementDockListComRespDto.getAchievementDockingList().stream().map(item -> item.getAchievementId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1965185_1_72078
                }
                if (reqDto != null) {
                    batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1965184_1_72078
                    batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1965186_1_72078
                    batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1965187_1_72078
                    batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1965188_1_72078
                    batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1965189_1_72078
                }

                /*D2批量查询文档关系实例by归属内容表主键(公共)[10083]   */
                Assert.isNull(batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.getSpaceId(), "D3查询目标内容成果对接文档列表(公共)-D2批量查询文档关系实例by归属内容表主键(公共)-创建于空间ID不能为空", false);
                batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto = unstructuredDataService.batchQueryUnstructuredRelationshipInstanceByOwnEntityIdCom(batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


                batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto_1 = batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto;
            }
        }
        QueryTargetContAchievementDockDocListComRespDto retData = new QueryTargetContAchievementDockDocListComRespDto();
        //数据集融合  MoreListToOneSource
        if (batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto_1 != null && !CollectionUtil.isEmpty(batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto_1.getDocumentList())) {
            for (com.wicket.okrcomponent.integration.dto.DocumentDto documentDto : batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto_1.getDocumentList()) {
                AchievementDockingDto retElm = new AchievementDockingDto();
                if (batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto_1 != null) {
                    retElm.setUnstructuredDataRelationshipId(documentDto.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:405106_2
                    retElm.setUnstructuredDataId(documentDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:405107_2
                    retElm.setThemeContentId(documentDto.getThemeContentId());//SimpleFieldAssign//sourceId:405136_2
                    retElm.setUnstructuredDataNumber(documentDto.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:405108_2
                    retElm.setUnstructuredDataName(documentDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:405109_2
                    retElm.setPostfix(documentDto.getPostfix());//SimpleFieldAssign//sourceId:405110_2
                    retElm.setFileSize(documentDto.getFileSize());//SimpleFieldAssign//sourceId:405111_2
                    retElm.setFileRelativePathAccess(documentDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:405112_2
                    retElm.setUnstructuredDataDetailType(documentDto.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:405113_2
                    retElm.setIsSupportPreview(documentDto.getIsSupportPreview());//SimpleFieldAssign//sourceId:405114_2
                    retElm.setIsUserUpload(documentDto.getIsUserUpload());//SimpleFieldAssign//sourceId:405115_2
                    retElm.setUnstructuredDataFolderId(documentDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:405116_2
                    retElm.setOrderNumber(documentDto.getOrderNumber());//SimpleFieldAssign//sourceId:405117_2
                    retElm.setOperateTime(documentDto.getOperateTime());//SimpleFieldAssign//sourceId:405118_2
                    retElm.setCreateInductionId(documentDto.getCreateInductionId());//SimpleFieldAssign//sourceId:405119_2
                    retElm.setCreateTime(documentDto.getCreateTime());//SimpleFieldAssign//sourceId:405550_2
                }
                retData.getAchievementDockingList().add(retElm);
                if (queryTargetContCurOrAllAchievementDockListComRespDto_1 != null) {
                    for (AchievementDockingDto achievementDockingDto : queryTargetContCurOrAllAchievementDockListComRespDto_1.getAchievementDockingList()) {
                        if (achievementDockingDto.getAchievementId().equals(documentDto.getOwnEntityId())) {
                            if (queryTargetContCurOrAllAchievementDockListComRespDto_1 != null) {
                                retElm.setAchievementId(achievementDockingDto.getAchievementId());//SimpleFieldAssign//sourceId:406238_2
                                retElm.setTargetCycleContentId(achievementDockingDto.getTargetCycleContentId());//SimpleFieldAssign//sourceId:406239_2
                            }
                        }
                    }
                }

            }
        }//sourceId:1965627_1


        return retData;
    }

    /**
     * D3查询目标内容树周期阶段资料列表(公共)[10094]
     * gen by moon at 8/14/2024, 1:10:08 PM
     */
    @Trace(operationName = "D3查询目标内容树周期阶段资料列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryTargetContTreeUnstructuredRelationshipInstanceListComRespDto queryTargetContTreeUnstructuredRelationshipInstanceListCom(QueryTargetContTreeUnstructuredRelationshipInstanceListComReqDto reqDto) {


        List<OmsTspeCycleStageData> listOmsTspeCycleStageData_1 = new ArrayList<>();
//virtualUsage D3判断父子中周期传值(公共)  72130
        JudgeBetweenFatherSonValueTransferComRespDto judgeBetweenFatherSonValueTransferComRespDto = null;
        JudgeBetweenFatherSonValueTransferComReqDto judgeBetweenFatherSonValueTransferComReqDto = new JudgeBetweenFatherSonValueTransferComReqDto();
        if (reqDto != null) {
            judgeBetweenFatherSonValueTransferComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1968869_1_72130
            judgeBetweenFatherSonValueTransferComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1968866_1_72130
            judgeBetweenFatherSonValueTransferComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1968867_1_72130
            judgeBetweenFatherSonValueTransferComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1968868_1_72130
            judgeBetweenFatherSonValueTransferComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1968871_1_72130
        }

        /*D3判断父子中周期传值(公共)[4854]   */
        Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getCycleId(), "D3查询目标内容树周期阶段资料列表(公共)-D3判断父子中周期传值(公共)-周期ID不能为空", false);
        Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsParentCycle(), "D3查询目标内容树周期阶段资料列表(公共)-D3判断父子中周期传值(公共)-是否父周期不能为空", false);
        Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsMetaphase(), "D3查询目标内容树周期阶段资料列表(公共)-D3判断父子中周期传值(公共)-是否中期不能为空", false);
        Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getIsSubCycle(), "D3查询目标内容树周期阶段资料列表(公共)-D3判断父子中周期传值(公共)-是否子周期不能为空", false);
        Assert.isNull(judgeBetweenFatherSonValueTransferComReqDto.getEvaluationTemplateId(), "D3查询目标内容树周期阶段资料列表(公共)-D3判断父子中周期传值(公共)-评价模板ID不能为空", false);
        judgeBetweenFatherSonValueTransferComRespDto = targetCycleService.judgeBetweenFatherSonValueTransferCom(judgeBetweenFatherSonValueTransferComReqDto)/*vcase invoke isSameApp*/;


//virtualUsage 3-3-09查询右模糊被评对象目标周期列表  72131
        List<OmsEvaluationObjectTargetCycle> listOmsEvaluationObjectTargetCycle = new ArrayList<>();
        if (judgeBetweenFatherSonValueTransferComRespDto != null) {
            QueryRightVagueEvaObjTargetCycleListReq queryRightVagueEvaObjTargetCycleListReq = new QueryRightVagueEvaObjTargetCycleListReq();
            queryRightVagueEvaObjTargetCycleListReq.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1968914_1_72131
            queryRightVagueEvaObjTargetCycleListReq.setEvaObjTypeCode("EVA_OBJECT");//sourceId:1968915_1_72131
            queryRightVagueEvaObjTargetCycleListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1968921_1_72131
            if (reqDto != null) {
                queryRightVagueEvaObjTargetCycleListReq.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1968913_1_72131
                queryRightVagueEvaObjTargetCycleListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1968916_1_72131
            }
            if (judgeBetweenFatherSonValueTransferComRespDto != null) {
                queryRightVagueEvaObjTargetCycleListReq.setCycleId(judgeBetweenFatherSonValueTransferComRespDto.getCycleId());//SimpleFieldAssign//sourceId:1968917_1_72131
                queryRightVagueEvaObjTargetCycleListReq.setIsParentCycle(judgeBetweenFatherSonValueTransferComRespDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1968918_1_72131
                queryRightVagueEvaObjTargetCycleListReq.setIsMetaphase(judgeBetweenFatherSonValueTransferComRespDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1968919_1_72131
                queryRightVagueEvaObjTargetCycleListReq.setIsSubCycle(judgeBetweenFatherSonValueTransferComRespDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1968920_1_72131
            }

            /*3-3-09查询右模糊被评对象目标周期列表[5529]   */
            Assert.isNull(queryRightVagueEvaObjTargetCycleListReq.getEvaObjTargetCycleCode(), "D3查询目标内容树周期阶段资料列表(公共)-3-3-09查询右模糊被评对象目标周期列表-被评对象目标周期标识不能为空", false);
            Assert.isNull(queryRightVagueEvaObjTargetCycleListReq.getEvaObjEntityId(), "D3查询目标内容树周期阶段资料列表(公共)-3-3-09查询右模糊被评对象目标周期列表-被评对象内容表主键ID不能为空", false);
            Assert.isNull(queryRightVagueEvaObjTargetCycleListReq.getEvaObjTypeCode(), "D3查询目标内容树周期阶段资料列表(公共)-3-3-09查询右模糊被评对象目标周期列表-被评对象类型编码不能为空", false);
            Assert.isNull(queryRightVagueEvaObjTargetCycleListReq.getSubjectLifeCycle(), "D3查询目标内容树周期阶段资料列表(公共)-3-3-09查询右模糊被评对象目标周期列表-主体生命周期不能为空", false);
            Assert.isNull(queryRightVagueEvaObjTargetCycleListReq.getEvaluationTemplateId(), "D3查询目标内容树周期阶段资料列表(公共)-3-3-09查询右模糊被评对象目标周期列表-冗余评价模板ID不能为空", false);
            listOmsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.queryRightVagueEvaObjTargetCycleList(queryRightVagueEvaObjTargetCycleListReq)/*vcase invoke 本地 method 方法调用;*/;


        }
        if ((listOmsEvaluationObjectTargetCycle != null && listOmsEvaluationObjectTargetCycle != null && listOmsEvaluationObjectTargetCycle.size() > 0)) {
            //if(3-3-09查询右模糊被评对象目标周期列表.右模糊被评对象目标周期列表数据集条数 大于 0)  72132

            List<OmsTspeCycleStageData> listOmsTspeCycleStageData = new ArrayList<>();
            if (listOmsEvaluationObjectTargetCycle != null && !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle) && listOmsEvaluationObjectTargetCycle.size() > 0) {
                BatchQueryCycleStageDataListByIdsReq batchQueryCycleStageDataListByIdsReq = new BatchQueryCycleStageDataListByIdsReq();
                batchQueryCycleStageDataListByIdsReq.setStageContentType("STA_WOR_SUM_CON");//sourceId:1968927_1_72133
                batchQueryCycleStageDataListByIdsReq.setIsArchive("FALSE");//sourceId:1968932_1_72133
                batchQueryCycleStageDataListByIdsReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1968926_1_72133
                if (listOmsEvaluationObjectTargetCycle != null && !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle) && listOmsEvaluationObjectTargetCycle != null && !CollectionUtil.isEmpty(listOmsEvaluationObjectTargetCycle)) {
                    batchQueryCycleStageDataListByIdsReq.setCycleStageDataList(listOmsEvaluationObjectTargetCycle.stream().map(item -> item.getEvaObjTargetCycleId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1968923_1_72133
                }
                if (reqDto != null) {
                    batchQueryCycleStageDataListByIdsReq.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:1968933_1_72133
                }

                /*3-3-11批量查询周期阶段资料列表ByIds[4225]   */
                Assert.isNull(batchQueryCycleStageDataListByIdsReq.getStageContentType(), "D3查询目标内容树周期阶段资料列表(公共)-3-3-11批量查询周期阶段资料列表ByIds-内容性质类型编码不能为空", false);
                Assert.isNull(batchQueryCycleStageDataListByIdsReq.getIsArchive(), "D3查询目标内容树周期阶段资料列表(公共)-3-3-11批量查询周期阶段资料列表ByIds-是否存档不能为空", false);
                Assert.isNull(batchQueryCycleStageDataListByIdsReq.getThemeContentId(), "D3查询目标内容树周期阶段资料列表(公共)-3-3-11批量查询周期阶段资料列表ByIds-主题内容ID不能为空", false);
                Assert.isNull(batchQueryCycleStageDataListByIdsReq.getSpaceId(), "D3查询目标内容树周期阶段资料列表(公共)-3-3-11批量查询周期阶段资料列表ByIds-创建于空间ID不能为空", false);
                listOmsTspeCycleStageData = mOmsTspeCycleStageDataService.batchQueryCycleStageDataListByIds(batchQueryCycleStageDataListByIdsReq)/*vcase invoke 本地 method 方法调用;*/;


                listOmsTspeCycleStageData_1 = listOmsTspeCycleStageData;
            }
        }
        QueryTargetContTreeUnstructuredRelationshipInstanceListComRespDto retData = new QueryTargetContTreeUnstructuredRelationshipInstanceListComRespDto();
        retData.setCycleStageDataList(listOmsTspeCycleStageData_1.stream().map(item -> BeanUtil.toBean(item, CycleStageDataDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1970292_1


        return retData;
    }

    /**
     * D3执行按工作周期查目标下网盘文档列表(公共)[10450]
     * gen by moon at 12/10/2024, 4:35:02 PM
     */
    @Trace(operationName = "D3执行按工作周期查目标下网盘文档列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementTargetNetDiskDocByTargetCycleIdComRespDto implementTargetNetDiskDocByTargetCycleIdCom(ImplementTargetNetDiskDocByTargetCycleIdComReqDto reqDto) {


        ImplementElevenReceivingFieldRespDto receptionServiceRes_1 = null;
        if ((reqDto != null && reqDto.getCycleStageDataList() != null && reqDto.getCycleStageDataList().size() > 0)) {
            //if(D3执行按工作周期查目标下网盘文档列表(公共).周期阶段资料列表数据集条数 大于 0)  73721

            BatchQueryCycleStageDataComRespDto batchQueryCycleStageDataComRespDto = null;
            BatchQueryCycleStageDataComReqDto batchQueryCycleStageDataComReqDto = new BatchQueryCycleStageDataComReqDto();
            batchQueryCycleStageDataComReqDto.setStageContentType("STA_WOR_SUM_CON");//sourceId:2036139_1_73722
            batchQueryCycleStageDataComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:2036135_1_73722
            if (reqDto != null) {
                batchQueryCycleStageDataComReqDto.setCycleStageDataList(reqDto.getCycleStageDataList());//list-field-assign//sourceId:2036133_1_73722
                batchQueryCycleStageDataComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:2036143_1_73722
                batchQueryCycleStageDataComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:2036136_1_73722
            }

            /*D3批量查询周期阶段资料列表by目标周期(公共)[7888]   */
            Assert.isNull(batchQueryCycleStageDataComReqDto.getSpaceId(), "D3执行按工作周期查目标下网盘文档列表(公共)-D3批量查询周期阶段资料列表by目标周期(公共)-创建于空间ID不能为空", false);
            batchQueryCycleStageDataComRespDto = cycleStageDataService.batchQueryCycleStageDataCom(batchQueryCycleStageDataComReqDto)/*vcase invoke isSameApp*/;


            if ((batchQueryCycleStageDataComRespDto != null && batchQueryCycleStageDataComRespDto.getCycleStageDataList() != null && batchQueryCycleStageDataComRespDto.getCycleStageDataList().size() > 0)) {
                //if(D3批量查询周期阶段资料列表by目标周期(公共).周期阶段资料列表数据集条数 大于 0)  73723

                BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto = null;
                if (batchQueryCycleStageDataComRespDto != null) {
                    BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto = new BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto();
                    if (batchQueryCycleStageDataComRespDto != null && batchQueryCycleStageDataComRespDto.getCycleStageDataList() != null && !CollectionUtil.isEmpty(batchQueryCycleStageDataComRespDto.getCycleStageDataList())) {
                        batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setUnstructuredRelationshipList(batchQueryCycleStageDataComRespDto.getCycleStageDataList().stream().map(item -> item.getCycleStageDataId())
                                .collect(Collectors.toList()));/*list-to-strings*///sourceId:2036147_1_73724
                    }
                    if (reqDto != null) {
                        batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:2036146_1_73724
                        batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:2036148_1_73724
                        batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:2036645_1_73724
                        batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:2036646_1_73724
                        batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:2036647_1_73724
                        batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:2036648_1_73724
                        batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setThemeContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:2036175_1_73724
                        batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:2036144_1_73724
                    }

                    /*D2批量查询文档关系实例by归属内容表主键(公共)[10083]   */
                    Assert.isNull(batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto.getSpaceId(), "D3执行按工作周期查目标下网盘文档列表(公共)-D2批量查询文档关系实例by归属内容表主键(公共)-创建于空间ID不能为空", false);
                    batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto = unstructuredDataService.batchQueryUnstructuredRelationshipInstanceByOwnEntityIdCom(batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


                }
//ModelCode: receptionService
                ImplementElevenReceivingFieldRespDto receptionServiceRes = null;
                if (batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto != null) {
                    ImplementElevenReceivingFieldReqDto receptionServiceReq = new ImplementElevenReceivingFieldReqDto();
                    if (batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto != null && batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto.getDocumentList() != null && !CollectionUtil.isEmpty(batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto.getDocumentList())) {
                        receptionServiceReq.setDocumentList(//objList-to-objLists
                                batchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto.getDocumentList().stream().map(item -> {
                                    DocumentDto elm = new DocumentDto();
                                    if (item != null) {
                                        elm.setUnstructuredDataRelationshipId(item.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:429986_2_73725
                                        elm.setUnstructuredDataId(item.getUnstructuredDataId());//SimpleFieldAssign//sourceId:429978_2_73725
                                        elm.setUnstructuredDataType(item.getUnstructuredDataType());//SimpleFieldAssign//sourceId:430095_2_73725
                                        elm.setUnstructuredDataNumber(item.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:429994_2_73725
                                        elm.setUnstructuredDataName(item.getUnstructuredDataName());//SimpleFieldAssign//sourceId:429979_2_73725
                                        elm.setPostfix(item.getPostfix());//SimpleFieldAssign//sourceId:429980_2_73725
                                        elm.setFileSize(item.getFileSize());//SimpleFieldAssign//sourceId:429993_2_73725
                                        elm.setFileRelativePathAccess(item.getFileRelativeAllPathAccess() != null ? String.valueOf(item.getFileRelativeAllPathAccess()) : "");//SimpleFieldAssign//sourceId:429981_2_73725
                                        elm.setUnstructuredDataDetailType(item.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:429995_2_73725
                                        elm.setIsSupportPreview(item.getIsSupportPreview());//SimpleFieldAssign//sourceId:429996_2_73725
                                        elm.setIsUserUpload(item.getIsUserUpload());//SimpleFieldAssign//sourceId:429997_2_73725
                                        elm.setUnstructuredDataDesc(item.getUnstructuredDataDesc());//SimpleFieldAssign//sourceId:430118_2_73725
                                        elm.setUnstructuredDataFolderId(item.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:430117_2_73725
                                        elm.setCreateInductionId(item.getCreateInductionId());//SimpleFieldAssign//sourceId:429991_2_73725
                                        elm.setCreateTime(item.getCreateTime());//SimpleFieldAssign//sourceId:429998_2_73725
                                        elm.setOwnEntityId(item.getOwnEntityId());//SimpleFieldAssign//sourceId:429987_2_73725
                                        elm.setOwnParentContentId(item.getOwnParentContentId());//SimpleFieldAssign//sourceId:429988_2_73725
                                        elm.setThemeContentId(item.getThemeContentId());//SimpleFieldAssign//sourceId:429989_2_73725
                                    }
                                    return elm;
                                }).collect(Collectors.toList()));//objList-to-objLists//sourceId:2036625_1_73725
                    }

                    /*M4-接收出参字段：文档列表[9482]  用于特殊方法接收上游入参。 */

                    receptionServiceRes = nbUnstructuredData.implementElevenReceivingField(receptionServiceReq);


                    receptionServiceRes_1 = receptionServiceRes;
                }
            }
        }
        ImplementTargetNetDiskDocByTargetCycleIdComRespDto retData = new ImplementTargetNetDiskDocByTargetCycleIdComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setDocumentList(receptionServiceRes_1.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:2036626_1
        }


        return retData;
    }
///**
//   * D3查询目标内容当前或全部文档关系实例列表(公共)[10095]
//   * gen by moon at 8/13/2024, 6:33:02 PM
//   */
//  @Trace(operationName = "D3查询目标内容当前或全部文档关系实例列表(公共)")
//  @Tags({@Tag(key = "参数",value = "arg[0]"),
//            @Tag(key = "返回值",value = "returnedObj")})
//  @Transactional(rollbackFor=Exception.class)
//  @Override
//  public QueryTargetContCurOrAllUnstructuredRelationshipInstanceListComRespDto queryTargetContCurOrAllUnstructuredRelationshipInstanceListCom(QueryTargetContCurOrAllUnstructuredRelationshipInstanceListComReqDto reqDto){
//
//
//      ImplementElevenReceivingFieldRespDto receptionServiceRes_1 =null;
//if((reqDto!= null&&  reqDto.getIsQueryAllDoc() !=null && reqDto.getIsQueryAllDoc().equals("TRUE"))) {
//        //if(D3查询目标内容当前或全部文档关系实例列表(公共).是否查询全部文档 等于 是)  72136
//
//QueryTargetContTreeUnstructuredRelationshipInstanceListComRespDto queryTargetContTreeUnstructuredRelationshipInstanceListComRespDto = null;
//    QueryTargetContTreeUnstructuredRelationshipInstanceListComReqDto queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto=new QueryTargetContTreeUnstructuredRelationshipInstanceListComReqDto();
//  if(reqDto!=null){
//      queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.setEvaObjTargetCycleCode(reqDto.getEvaObjTargetCycleCode());//SimpleFieldAssign//sourceId:1969783_1_72138
//queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.setCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1969784_1_72138
//queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.setIsParentCycle(reqDto.getIsParentCycle());//SimpleFieldAssign//sourceId:1969785_1_72138
//queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.setIsMetaphase(reqDto.getIsMetaphase());//SimpleFieldAssign//sourceId:1969786_1_72138
//queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.setIsSubCycle(reqDto.getIsSubCycle());//SimpleFieldAssign//sourceId:1969787_1_72138
//queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1969791_1_72138
//queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1969789_1_72138
//queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1969792_1_72138
//queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1969793_1_72138
//queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.setEvaluationTemplateId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1969790_1_72138
//    }
//
//    /*D3查询目标内容树文档关系实例列表(公共)[10094]   */
//    Assert.isNull(queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.getEvaObjTargetCycleCode(),"D3查询目标内容当前或全部文档关系实例列表(公共)-D3查询目标内容树文档关系实例列表(公共)-被评对象目标周期标识不能为空",false);
//Assert.isNull(queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.getCycleId(),"D3查询目标内容当前或全部文档关系实例列表(公共)-D3查询目标内容树文档关系实例列表(公共)-周期ID不能为空",false);
//Assert.isNull(queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.getIsParentCycle(),"D3查询目标内容当前或全部文档关系实例列表(公共)-D3查询目标内容树文档关系实例列表(公共)-是否父周期不能为空",false);
//Assert.isNull(queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.getIsMetaphase(),"D3查询目标内容当前或全部文档关系实例列表(公共)-D3查询目标内容树文档关系实例列表(公共)-是否中期不能为空",false);
//Assert.isNull(queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.getIsSubCycle(),"D3查询目标内容当前或全部文档关系实例列表(公共)-D3查询目标内容树文档关系实例列表(公共)-是否子周期不能为空",false);
//Assert.isNull(queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto.getEvaluationTemplateId(),"D3查询目标内容当前或全部文档关系实例列表(公共)-D3查询目标内容树文档关系实例列表(公共)-冗余评价模板ID不能为空",false);
//      queryTargetContTreeUnstructuredRelationshipInstanceListComRespDto = queryTargetContTreeUnstructuredRelationshipInstanceListCom(queryTargetContTreeUnstructuredRelationshipInstanceListComReqDto)/*vcase invoke 同服务,同domain*/;
//
//
//
////ModelCode: receptionService
//        ImplementElevenReceivingFieldRespDto receptionServiceRes = null;
//    if(queryTargetContTreeUnstructuredRelationshipInstanceListComRespDto !=null){
//          ImplementElevenReceivingFieldReqDto receptionServiceReq=new ImplementElevenReceivingFieldReqDto();
//  if(queryTargetContTreeUnstructuredRelationshipInstanceListComRespDto!= null&&  queryTargetContTreeUnstructuredRelationshipInstanceListComRespDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(queryTargetContTreeUnstructuredRelationshipInstanceListComRespDto.getDocumentList())){
//      receptionServiceReq.setUnstructuredRelationshipList(//objList-to-objLists
//        queryTargetContTreeUnstructuredRelationshipInstanceListComRespDto.getDocumentList().stream().map(item -> {
//      UnstructuredRelationshipDto elm = new UnstructuredRelationshipDto();
//      if(item!=null){
//      elm.setUnstructuredDataRelationshipId(item.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:406979_2_72141
//elm.setUnstructuredDataId(item.getUnstructuredDataId());//SimpleFieldAssign//sourceId:406980_2_72141
//elm.setOwnEntityId(item.getOwnEntityId());//SimpleFieldAssign//sourceId:406981_2_72141
//elm.setOwnParentContentId(item.getOwnParentContentId());//SimpleFieldAssign//sourceId:406982_2_72141
//elm.setThemeContentId(item.getThemeContentId());//SimpleFieldAssign//sourceId:406983_2_72141
//elm.setUnstructuredDataNumber(item.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:406984_2_72141
//elm.setUnstructuredDataName(item.getUnstructuredDataName());//SimpleFieldAssign//sourceId:406985_2_72141
//elm.setPostfix(item.getPostfix());//SimpleFieldAssign//sourceId:406986_2_72141
//elm.setFileSize(item.getFileSize());//SimpleFieldAssign//sourceId:406987_2_72141
//elm.setFileRelativePathAccess(item.getFileRelativeAllPathAccess()!=null?String.valueOf(item.getFileRelativeAllPathAccess()):"");//SimpleFieldAssign//sourceId:406988_2_72141
//elm.setUnstructuredDataDetailType(item.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:406989_2_72141
//elm.setIsSupportPreview(item.getIsSupportPreview());//SimpleFieldAssign//sourceId:406990_2_72141
//elm.setIsUserUpload(item.getIsUserUpload());//SimpleFieldAssign//sourceId:406991_2_72141
//elm.setOrderNumber(item.getOrderNumber());//SimpleFieldAssign//sourceId:406992_2_72141
//elm.setOperateTime(item.getOperateTime());//SimpleFieldAssign//sourceId:406993_2_72141
//elm.setCreateInductionId(item.getCreateInductionId());//SimpleFieldAssign//sourceId:406994_2_72141
//elm.setCreateTime(item.getCreateTime());//SimpleFieldAssign//sourceId:406995_2_72141
//    }
//        return elm;
//      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1969813_1_72141
//    }
//
//    /*M3-接收出参：文档关系列表[9482]  用于特殊方法接收上游入参。 */
//
//      receptionServiceRes = nbUnstructuredData.implementElevenReceivingField(receptionServiceReq);
//
//
//      receptionServiceRes_1 = receptionServiceRes;
//           }
//      }
//else if((reqDto!= null&&  reqDto.getIsQueryAllDoc() !=null && reqDto.getIsQueryAllDoc().equals("FALSE"))){
//       //elseif(D3查询目标内容当前或全部文档关系实例列表(公共).是否查询全部文档 等于 否)  72137
//
//QueryUnstructuredRelationshipInstanceListComRespDto queryUnstructuredRelationshipInstanceListComRespDto = null;
//    QueryUnstructuredRelationshipInstanceListComReqDto queryUnstructuredRelationshipInstanceListComReqDto=new QueryUnstructuredRelationshipInstanceListComReqDto();
//  queryUnstructuredRelationshipInstanceListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1969841_1_72139
//if(reqDto!=null){
//      queryUnstructuredRelationshipInstanceListComReqDto.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1969834_1_72139
//queryUnstructuredRelationshipInstanceListComReqDto.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1969838_1_72139
//queryUnstructuredRelationshipInstanceListComReqDto.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1969839_1_72139
//queryUnstructuredRelationshipInstanceListComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1969840_1_72139
//queryUnstructuredRelationshipInstanceListComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1969836_1_72139
//queryUnstructuredRelationshipInstanceListComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1969835_1_72139
//queryUnstructuredRelationshipInstanceListComReqDto.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1969837_1_72139
//    }
//
//    /*D2查询文档关系实例列表(公共)[8781]   */
//    Assert.isNull(queryUnstructuredRelationshipInstanceListComReqDto.getSpaceId(),"D3查询目标内容当前或全部文档关系实例列表(公共)-D2查询文档关系实例列表(公共)-创建于空间ID不能为空",false);
//      queryUnstructuredRelationshipInstanceListComRespDto = unstructuredDataService.queryUnstructuredRelationshipInstanceListCom(queryUnstructuredRelationshipInstanceListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
//
//
//
////ModelCode: receptionService
//        ImplementElevenReceivingFieldRespDto receptionServiceRes_2 = null;
//    if(queryUnstructuredRelationshipInstanceListComRespDto !=null){
//          ImplementElevenReceivingFieldReqDto receptionServiceReq_1=new ImplementElevenReceivingFieldReqDto();
//  if(queryUnstructuredRelationshipInstanceListComRespDto!= null&&  queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList() !=null&& !CollectionUtil.isEmpty(queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList())){
//      receptionServiceReq_1.setUnstructuredRelationshipList(//objList-to-objLists
//        queryUnstructuredRelationshipInstanceListComRespDto.getUnstructuredRelationshipList().stream().map(item -> {
//      UnstructuredRelationshipDto elm = new UnstructuredRelationshipDto();
//      if(item!=null){
//      elm.setUnstructuredDataRelationshipId(item.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:406979_2_72140
//elm.setUnstructuredDataId(item.getUnstructuredDataId());//SimpleFieldAssign//sourceId:406980_2_72140
//elm.setOwnEntityId(item.getOwnEntityId());//SimpleFieldAssign//sourceId:406981_2_72140
//elm.setOwnParentContentId(item.getOwnParentContentId());//SimpleFieldAssign//sourceId:406982_2_72140
//elm.setThemeContentId(item.getThemeContentId());//SimpleFieldAssign//sourceId:406983_2_72140
//elm.setUnstructuredDataNumber(item.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:406984_2_72140
//elm.setUnstructuredDataName(item.getUnstructuredDataName());//SimpleFieldAssign//sourceId:406985_2_72140
//elm.setPostfix(item.getPostfix());//SimpleFieldAssign//sourceId:406986_2_72140
//elm.setFileSize(item.getFileSize());//SimpleFieldAssign//sourceId:406987_2_72140
//elm.setFileRelativePathAccess(item.getFileRelativeAllPathAccess()!=null?String.valueOf(item.getFileRelativeAllPathAccess()):"");//SimpleFieldAssign//sourceId:406988_2_72140
//elm.setUnstructuredDataDetailType(item.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:406989_2_72140
//elm.setIsSupportPreview(item.getIsSupportPreview());//SimpleFieldAssign//sourceId:406990_2_72140
//elm.setIsUserUpload(item.getIsUserUpload());//SimpleFieldAssign//sourceId:406991_2_72140
//elm.setOrderNumber(item.getOrderNumber());//SimpleFieldAssign//sourceId:406992_2_72140
//elm.setOperateTime(item.getOperateTime());//SimpleFieldAssign//sourceId:406993_2_72140
//elm.setCreateInductionId(item.getCreateInductionId());//SimpleFieldAssign//sourceId:406994_2_72140
//elm.setCreateTime(item.getCreateTime());//SimpleFieldAssign//sourceId:406995_2_72140
//    }
//        return elm;
//      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1969813_1_72140
//    }
//
//    /*M3-接收出参：文档关系列表[9482]  用于特殊方法接收上游入参。 */
//
//      receptionServiceRes_2 = nbUnstructuredData.implementElevenReceivingField(receptionServiceReq_1);
//
//
//      receptionServiceRes_1 = receptionServiceRes_2;
//           }
//    }
//QueryTargetContCurOrAllUnstructuredRelationshipInstanceListComRespDto retData = new QueryTargetContCurOrAllUnstructuredRelationshipInstanceListComRespDto();
//  if(receptionServiceRes_1!=null){
//      retData.setUnstructuredRelationshipList(//objList-to-objLists
//        receptionServiceRes_1.getUnstructuredRelationshipList().stream().map(item -> {
//      UnstructuredRelationshipDto elm = new UnstructuredRelationshipDto();
//      if(item!=null){
//      elm.setUnstructuredDataRelationshipId(item.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:407013_2
//elm.setUnstructuredDataId(item.getUnstructuredDataId());//SimpleFieldAssign//sourceId:407014_2
//elm.setOwnEntityId(item.getOwnEntityId());//SimpleFieldAssign//sourceId:407015_2
//elm.setOwnParentContentId(item.getOwnParentContentId());//SimpleFieldAssign//sourceId:407016_2
//elm.setThemeContentId(item.getThemeContentId());//SimpleFieldAssign//sourceId:407017_2
//elm.setUnstructuredDataNumber(item.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:407018_2
//elm.setUnstructuredDataName(item.getUnstructuredDataName());//SimpleFieldAssign//sourceId:407019_2
//elm.setPostfix(item.getPostfix());//SimpleFieldAssign//sourceId:407020_2
//elm.setFileSize(item.getFileSize());//SimpleFieldAssign//sourceId:407021_2
//elm.setFileRelativeAllPathAccess(item.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:407022_2
//elm.setUnstructuredDataDetailType(item.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:407023_2
//elm.setIsSupportPreview(item.getIsSupportPreview());//SimpleFieldAssign//sourceId:407024_2
//elm.setIsUserUpload(item.getIsUserUpload());//SimpleFieldAssign//sourceId:407025_2
//elm.setOrderNumber(item.getOrderNumber());//SimpleFieldAssign//sourceId:407026_2
//elm.setOperateTime(item.getOperateTime());//SimpleFieldAssign//sourceId:407027_2
//elm.setCreateInductionId(item.getCreateInductionId());//SimpleFieldAssign//sourceId:407028_2
//elm.setCreateTime(item.getCreateTime());//SimpleFieldAssign//sourceId:407029_2
//    }
//        return elm;
//      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1969817_1
//    }
//
//
//
//
//return retData;
//  }

    //
}
